File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -84,18 +84,20 @@ async function changeUsernameLinkedAndroid(platform: SupportedPlatformsType) {
8484 let currentWait = 0 ;
8585 const waitPerLoop = 500 ;
8686 const maxWait = 50000 ;
87-
87+
8888 do {
8989 await sleepFor ( waitPerLoop ) ;
9090 // Close the screen and navigate back to the User Settings
9191 await device2 . closeScreen ( ) ;
9292 await device2 . clickOnElementAll ( new UserSettings ( device2 ) ) ;
9393 currentWait += waitPerLoop ;
94- const linkedUsernameEl = await device2 . waitForTextElementToBePresent ( new UsernameSettings ( device2 ) ) ;
94+ const linkedUsernameEl = await device2 . waitForTextElementToBePresent (
95+ new UsernameSettings ( device2 )
96+ ) ;
9597 currentLinkedUsername = await device2 . getTextFromElement ( linkedUsernameEl ) ;
96-
97- } while ( currentLinkedUsername === userA . userName && currentWait < maxWait ) {
98- console . log ( 'Username not changed yet' )
98+ } while ( currentLinkedUsername === userA . userName && currentWait < maxWait ) ;
99+ {
100+ console . log ( 'Username not changed yet' ) ;
99101 }
100102 await closeApp ( device1 , device2 ) ;
101103}
You can’t perform that action at this time.
0 commit comments