Skip to content

Commit 3c42ac4

Browse files
committed
29
1 parent 7efea05 commit 3c42ac4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/src/androidTest/java/com/mytaxi/android_demo/activities/DriverSearchTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ public void searchDriver () {
118118
}
119119

120120
onView(withId(R.id.searchContainer)).check(matches(isDisplayed()));
121-
onView(withText(containsString("Sarah"))).inRoot(withDecorView(not(mMainActivity.getActivity().getWindow().getDecorView()))).check(matches(isDisplayed()));
122121
IdlingRegistry.getInstance().unregister(mIdlingResource1);
122+
onView(withText(containsString("Sarah"))).inRoot(withDecorView(not(mMainActivity.getActivity().getWindow().getDecorView()))).check(matches(isDisplayed()));
123+
123124
//Step 7: Click on the Second Name
124125
onView(withText("Sarah Scott")).inRoot(withDecorView(not(mMainActivity.getActivity().getWindow().getDecorView()))).perform(click());
125126

app/src/androidTest/java/com/mytaxi/android_demo/activities/LogInTestCases.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ public void checkInvalidPassword() {
175175
//Step 1 : Enter valid username in the input field with heading username
176176
onView(withId(R.id.edt_username)).perform(typeText(sUserName));
177177

178-
//Step 2: Enter invalid password string associated with username
178+
//Step 2:
179+
// Enter invalid password string associated with username
179180
onView(withId(R.id.edt_password)).perform(typeText(sInvalidPassword));
180181

181182
//Step 3: close the keyboard

0 commit comments

Comments
 (0)