Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fixed flaky test related to change language spec #27590

Draft
wants to merge 6 commits into
base: develop
Choose a base branch
from
Draft
12 changes: 9 additions & 3 deletions test/e2e/tests/settings/change-language.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ describe('Settings - general tab @no-mmi', function (this: Suite) {
async ({ driver }: { driver: Driver }) => {
await unlockWallet(driver);
await changeLanguage(driver, languageIndex);
await driver.navigate();
await driver.clickElementAndWaitToDisappear(
'.settings-page__header__title-container__close-button',
);
await driver.clickElement(selectors.ethOverviewSend);
await driver.pasteIntoField(
selectors.ensInput,
Expand Down Expand Up @@ -176,7 +178,9 @@ describe('Settings - general tab @no-mmi', function (this: Suite) {
async ({ driver }: { driver: Driver }) => {
await unlockWallet(driver);
await changeLanguage(driver, languageIndex);
await driver.navigate();
await driver.clickElementAndWaitToDisappear(
'.settings-page__header__title-container__close-button',
);

// Validate the account tooltip
const isAccountTooltipChanged = await driver.isElementPresent(
Expand Down Expand Up @@ -214,7 +218,9 @@ describe('Settings - general tab @no-mmi', function (this: Suite) {
await unlockWallet(driver);
// selects "Magyar" language
await changeLanguage(driver, languageIndex);
await driver.navigate();
await driver.clickElementAndWaitToDisappear(
'.settings-page__header__title-container__close-button',
);
await driver.clickElement(selectors.nftsTab);

// Validate the hypertext
Expand Down
Loading