Skip to content

Commit fc79af4

Browse files
authored
test(extension): test maintenance 7 Nov part2 (#710)
1 parent fbee63c commit fc79af4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/e2e-tests/src/assert/topNavigationAssert.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { t } from '../utils/translationService';
44
import { expect } from 'chai';
55
import { ParsedCSSValue } from 'webdriverio';
66
import extensionUtils from '../utils/utils';
7+
import onboardingPageObject from '../pageobject/onboardingPageObject';
8+
import settingsExtendedPageObject from '../pageobject/settingsExtendedPageObject';
79

810
class TopNavigationAssert {
911
private readonly CSS_COLOR = 'color';
@@ -85,6 +87,9 @@ class TopNavigationAssert {
8587
}
8688

8789
async assertWalletIsInSyncedStatus() {
90+
await onboardingPageObject.waitUntilLoaderDisappears();
91+
await settingsExtendedPageObject.waitUntilSyncingModalDisappears();
92+
await settingsExtendedPageObject.closeWalletSyncedToast();
8893
await this.assertLogoPresent();
8994
await MenuHeader.menuButton.waitForDisplayed();
9095
await MenuHeader.menuButton.click();

packages/e2e-tests/src/steps/commonSteps.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import { visit } from '../utils/pageUtils';
3131
import CommonDrawerElements from '../elements/CommonDrawerElements';
3232
import DAppConnectorPageObject from '../pageobject/dAppConnectorPageObject';
3333
import settingsExtendedPageObject from '../pageobject/settingsExtendedPageObject';
34-
import onboardingPageObject from '../pageobject/onboardingPageObject';
3534

3635
Given(/^Lace is ready for test$/, async () => {
3736
await settingsExtendedPageObject.waitUntilSyncingModalDisappears();
@@ -60,9 +59,6 @@ Then(/^I close wallet synced toast/, async () => {
6059
});
6160

6261
Then(/^Wallet is synced$/, async () => {
63-
await onboardingPageObject.waitUntilLoaderDisappears();
64-
await settingsExtendedPageObject.waitUntilSyncingModalDisappears();
65-
await settingsExtendedPageObject.closeWalletSyncedToast();
6662
await topNavigationAssert.assertWalletIsInSyncedStatus();
6763
});
6864

0 commit comments

Comments
 (0)