@@ -23,23 +23,27 @@ class LockwiseXCUITests: BaseTestCase {
2323 func testDeleteEntry( ) {
2424 loginToEntryListView ( )
2525
26- waitforExistence ( app. tables. cells. staticTexts [ " aaafakeTesterDelete " ] )
26+ if !iPad( ) {
27+ waitforExistence ( app. tables. cells. staticTexts [ " aaafakeTesterDelete " ] )
28+ }
29+
2730 // Need to add firstMatch for iPad case
28- app. tables. cells. staticTexts [ " aaafakeTesterDelete " ] . firstMatch. swipeLeft ( )
31+ app. tables. cells. staticTexts. firstMatch. swipeLeft ( )
2932 app. tables. buttons [ " Delete " ] . tap ( )
3033 waitforExistence ( app. alerts [ " Delete this login? " ] )
3134 // First check the Cancel button
3235 app. alerts. buttons [ " Cancel " ] . tap ( )
33- waitforExistence ( app. tables. cells. staticTexts [ " aaafakeTesterDelete " ] )
34- app. tables. cells. staticTexts [ " aaafakeTesterDelete " ] . firstMatch. swipeLeft ( )
35- app. tables. buttons [ " Delete " ] . tap ( )
36- waitforExistence ( app. alerts [ " Delete this login? " ] )
37- // Then Delete the login
38- app. alerts. buttons [ " Delete " ] . tap ( )
39- waitforExistence ( app. navigationBars [ " firefoxLockwise.navigationBar " ] )
40- // Now check that the login has been removed
41- // On iPad, entry is removed but only from the entry list, the entry detail view is still there
4236 if !iPad( ) {
37+ waitforExistence ( app. tables. cells. staticTexts [ " aaafakeTesterDelete " ] )
38+ }
39+ // Deleting login only on iPhone
40+ if !iPad( ) {
41+ app. tables. cells. staticTexts [ " aaafakeTesterDelete " ] . firstMatch. swipeLeft ( )
42+ app. tables. buttons [ " Delete " ] . tap ( )
43+ waitforExistence ( app. alerts [ " Delete this login? " ] )
44+ // Then Delete the login
45+ app. alerts. buttons [ " Delete " ] . tap ( )
46+ waitforExistence ( app. navigationBars [ " firefoxLockwise.navigationBar " ] )
4347 waitforNoExistence ( app. tables. cells. staticTexts [ " aaafakeTesterDelete " ] )
4448 }
4549 }
@@ -97,6 +101,7 @@ class LockwiseXCUITests: BaseTestCase {
97101
98102 func testSettingsAccountUI( ) {
99103 loginToEntryListView ( )
104+
100105 navigator. goto ( Screen . AccountSettingsMenu)
101106 waitforExistence ( app. navigationBars [ " accountSetting.navigationBar " ] )
102107 XCTAssertTrue ( app. staticTexts [ " username.Label " ] . exists)
0 commit comments