11package org.wordpress.aztec.demo.pages
22
3+ import android.view.KeyEvent
4+ import android.view.View
35import androidx.test.espresso.DataInteraction
46import androidx.test.espresso.Espresso.onData
57import androidx.test.espresso.Espresso.onView
@@ -12,8 +14,6 @@ import androidx.test.espresso.action.ViewActions.typeTextIntoFocusedView
1214import androidx.test.espresso.assertion.ViewAssertions.matches
1315import androidx.test.espresso.matcher.ViewMatchers.withId
1416import androidx.test.espresso.matcher.ViewMatchers.withText
15- import android.view.KeyEvent
16- import android.view.View
1717import org.hamcrest.Matcher
1818import org.hamcrest.Matchers.allOf
1919import org.hamcrest.Matchers.hasToString
@@ -22,6 +22,8 @@ import org.wordpress.aztec.demo.Actions
2222import org.wordpress.aztec.demo.BasePage
2323import org.wordpress.aztec.demo.Matchers
2424import org.wordpress.aztec.demo.R
25+ import org.wordpress.aztec.R as AztecR
26+ import org.wordpress.aztec.plugins.wpcomments.R as WPCommentsR
2527
2628class EditorPage : BasePage () {
2729 private var editor: ViewInteraction
@@ -58,20 +60,20 @@ class EditorPage : BasePage() {
5860 undoButton = onView(withId(R .id.undo))
5961 redoButton = onView(withId(R .id.redo))
6062
61- openMediaToolbarButton = onView(withId(R .id.format_bar_button_media_collapsed))
62- closeMediaToolbarButton = onView(withId(R .id.format_bar_button_media_expanded))
63- headingButton = onView(withId(R .id.format_bar_button_heading))
64- listButton = onView(withId(R .id.format_bar_button_list))
65- quoteButton = onView(withId(R .id.format_bar_button_quote))
66- boldButton = onView(withId(R .id.format_bar_button_bold))
67- italicsButton = onView(withId(R .id.format_bar_button_italic))
68- linkButton = onView(withId(R .id.format_bar_button_link))
69- underlineButton = onView(withId(R .id.format_bar_button_underline))
70- strikethroughButton = onView(withId(R .id.format_bar_button_strikethrough))
71- horizontalRuleButton = onView(withId(R .id.format_bar_button_horizontal_rule))
72- moreRuleButton = onView(withId(R .id.format_bar_button_more))
73- pageButton = onView(withId(R .id.format_bar_button_page))
74- htmlButton = onView(withId(R .id.format_bar_button_html))
63+ openMediaToolbarButton = onView(withId(AztecR .id.format_bar_button_media_collapsed))
64+ closeMediaToolbarButton = onView(withId(AztecR .id.format_bar_button_media_expanded))
65+ headingButton = onView(withId(AztecR .id.format_bar_button_heading))
66+ listButton = onView(withId(AztecR .id.format_bar_button_list))
67+ quoteButton = onView(withId(AztecR .id.format_bar_button_quote))
68+ boldButton = onView(withId(AztecR .id.format_bar_button_bold))
69+ italicsButton = onView(withId(AztecR .id.format_bar_button_italic))
70+ linkButton = onView(withId(AztecR .id.format_bar_button_link))
71+ underlineButton = onView(withId(AztecR .id.format_bar_button_underline))
72+ strikethroughButton = onView(withId(AztecR .id.format_bar_button_strikethrough))
73+ horizontalRuleButton = onView(withId(AztecR .id.format_bar_button_horizontal_rule))
74+ moreRuleButton = onView(withId(WPCommentsR .id.format_bar_button_more))
75+ pageButton = onView(withId(WPCommentsR .id.format_bar_button_page))
76+ htmlButton = onView(withId(AztecR .id.format_bar_button_html))
7577
7678 photoButton = onView(allOf(withId(android.R .id.title), withText(" Photo from device" )))
7779 galleryButton = onView(withId(R .id.media_bar_button_gallery))
0 commit comments