File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
app/src/androidTest/java/com/mytaxi/android_demo/activities Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -109,12 +109,11 @@ public void loginToMyTaxiPositiveScenario() {
109
109
110
110
//Step 4: Press the Login Button
111
111
Espresso .onView (withId (R .id .btn_login )).perform (click ());
112
- try {
113
- Thread .sleep (10000 );
112
+
113
+ while (!(doesViewExist (R .id .textSearch )))
114
+ {
115
+ SystemClock .sleep (200 );
114
116
}
115
- catch (Exception e )
116
- { e .printStackTrace ();}
117
- //Log ig out
118
117
119
118
onView (withId (R .id .drawer_layout )).perform (DrawerActions .open ());
120
119
@@ -130,12 +129,7 @@ public void loginToMyTaxiPositiveScenario() {
130
129
131
130
132
131
133
- try {
134
- Thread .sleep (5000 );
135
- }
136
- catch (Exception e )
137
- { e .printStackTrace ();}
138
- //Log ig out
132
+
139
133
onView (withText ("Logout" )).perform (click ());
140
134
141
135
}
You can’t perform that action at this time.
0 commit comments