Skip to content

Commit

Permalink
Adding waiting for changing language
Browse files Browse the repository at this point in the history
  • Loading branch information
wrt95 committed Feb 6, 2024
1 parent 9f2a21d commit 2ebe61d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ test('That it is not possible to login with invalid credentials', async ({
await loginPage.clickOnLanguageMenu();
await loginPage.clickOnNorwegianLanguageOption();

// Changing langauge happens too fast in the browser, so we need to add some waiting
await loginPage.waitForXAmountOfMilliseconds(2000);

const langAfterchange = await loginPage.getLanguage();
Expand Down

0 comments on commit 2ebe61d

Please sign in to comment.