Skip to content

Commit 3164088

Browse files
committed
add input text field element as static ViewInteraction
1 parent fcd72be commit 3164088

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

WordPress/src/androidTest/java/org/wordpress/android/e2e/pages/ContactSupportScreen.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public class ContactSupportScreen {
4040
)
4141
));
4242

43+
static ViewInteraction inputTextField = onView(withId(R.id.message_composer_input_text));
44+
4345
// Actions:
4446
public ContactSupportScreen setMessageText(String text) {
4547
populateTextField(textInput, text);
@@ -68,7 +70,7 @@ public HelpAndSupportScreen goBackAndDeleteUnsentMessageIfNeeded() {
6870

6971
// Assertions:
7072
public ContactSupportScreen assertContactSupportScreenLoaded() {
71-
waitForElementToBeDisplayed(R.id.message_composer_input_text);
73+
waitForElementToBeDisplayed(inputTextField);
7274
textInput.check(matches(isCompletelyDisplayed()));
7375
sendButton.check(matches(isCompletelyDisplayed()));
7476
return this;

0 commit comments

Comments
 (0)