File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import { t } from '../utils/translationService';
4
4
import { expect } from 'chai' ;
5
5
import { ParsedCSSValue } from 'webdriverio' ;
6
6
import extensionUtils from '../utils/utils' ;
7
+ import onboardingPageObject from '../pageobject/onboardingPageObject' ;
8
+ import settingsExtendedPageObject from '../pageobject/settingsExtendedPageObject' ;
7
9
8
10
class TopNavigationAssert {
9
11
private readonly CSS_COLOR = 'color' ;
@@ -85,6 +87,9 @@ class TopNavigationAssert {
85
87
}
86
88
87
89
async assertWalletIsInSyncedStatus ( ) {
90
+ await onboardingPageObject . waitUntilLoaderDisappears ( ) ;
91
+ await settingsExtendedPageObject . waitUntilSyncingModalDisappears ( ) ;
92
+ await settingsExtendedPageObject . closeWalletSyncedToast ( ) ;
88
93
await this . assertLogoPresent ( ) ;
89
94
await MenuHeader . menuButton . waitForDisplayed ( ) ;
90
95
await MenuHeader . menuButton . click ( ) ;
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import { visit } from '../utils/pageUtils';
31
31
import CommonDrawerElements from '../elements/CommonDrawerElements' ;
32
32
import DAppConnectorPageObject from '../pageobject/dAppConnectorPageObject' ;
33
33
import settingsExtendedPageObject from '../pageobject/settingsExtendedPageObject' ;
34
- import onboardingPageObject from '../pageobject/onboardingPageObject' ;
35
34
36
35
Given ( / ^ L a c e i s r e a d y f o r t e s t $ / , async ( ) => {
37
36
await settingsExtendedPageObject . waitUntilSyncingModalDisappears ( ) ;
@@ -60,9 +59,6 @@ Then(/^I close wallet synced toast/, async () => {
60
59
} ) ;
61
60
62
61
Then ( / ^ W a l l e t i s s y n c e d $ / , async ( ) => {
63
- await onboardingPageObject . waitUntilLoaderDisappears ( ) ;
64
- await settingsExtendedPageObject . waitUntilSyncingModalDisappears ( ) ;
65
- await settingsExtendedPageObject . closeWalletSyncedToast ( ) ;
66
62
await topNavigationAssert . assertWalletIsInSyncedStatus ( ) ;
67
63
} ) ;
68
64
You can’t perform that action at this time.
0 commit comments