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,7 @@ 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
2526
2627class EditorPage : BasePage () {
2728 private var editor: ViewInteraction
@@ -58,20 +59,20 @@ class EditorPage : BasePage() {
5859 undoButton = onView(withId(R .id.undo))
5960 redoButton = onView(withId(R .id.redo))
6061
61- openMediaToolbarButton = onView(withId(org.wordpress.aztec. R .id.format_bar_button_media_collapsed))
62- closeMediaToolbarButton = onView(withId(org.wordpress.aztec. R .id.format_bar_button_media_expanded))
63- headingButton = onView(withId(org.wordpress.aztec. R .id.format_bar_button_heading))
64- listButton = onView(withId(org.wordpress.aztec. R .id.format_bar_button_list))
65- quoteButton = onView(withId(org.wordpress.aztec. R .id.format_bar_button_quote))
66- boldButton = onView(withId(org.wordpress.aztec. R .id.format_bar_button_bold))
67- italicsButton = onView(withId(org.wordpress.aztec. R .id.format_bar_button_italic))
68- linkButton = onView(withId(org.wordpress.aztec. R .id.format_bar_button_link))
69- underlineButton = onView(withId(org.wordpress.aztec. R .id.format_bar_button_underline))
70- strikethroughButton = onView(withId(org.wordpress.aztec. R .id.format_bar_button_strikethrough))
71- horizontalRuleButton = onView(withId(org.wordpress.aztec. R .id.format_bar_button_horizontal_rule))
62+ openMediaToolbarButton = onView(withId(AztecR .id.format_bar_button_media_collapsed))
63+ closeMediaToolbarButton = onView(withId(AztecR .id.format_bar_button_media_expanded))
64+ headingButton = onView(withId(AztecR .id.format_bar_button_heading))
65+ listButton = onView(withId(AztecR .id.format_bar_button_list))
66+ quoteButton = onView(withId(AztecR .id.format_bar_button_quote))
67+ boldButton = onView(withId(AztecR .id.format_bar_button_bold))
68+ italicsButton = onView(withId(AztecR .id.format_bar_button_italic))
69+ linkButton = onView(withId(AztecR .id.format_bar_button_link))
70+ underlineButton = onView(withId(AztecR .id.format_bar_button_underline))
71+ strikethroughButton = onView(withId(AztecR .id.format_bar_button_strikethrough))
72+ horizontalRuleButton = onView(withId(AztecR .id.format_bar_button_horizontal_rule))
7273 moreRuleButton = onView(withId(org.wordpress.aztec.plugins.wpcomments.R .id.format_bar_button_more))
7374 pageButton = onView(withId(org.wordpress.aztec.plugins.wpcomments.R .id.format_bar_button_page))
74- htmlButton = onView(withId(org.wordpress.aztec. R .id.format_bar_button_html))
75+ htmlButton = onView(withId(AztecR .id.format_bar_button_html))
7576
7677 photoButton = onView(allOf(withId(android.R .id.title), withText(" Photo from device" )))
7778 galleryButton = onView(withId(R .id.media_bar_button_gallery))
0 commit comments