Skip to content

Commit

Permalink
chore(#9543): flaky e2e test incorrect locale (#9611)
Browse files Browse the repository at this point in the history
Co-authored-by: Rafa <[email protected]>
  • Loading branch information
ralfudx and Rafa authored Nov 11, 2024
1 parent 7c03b79 commit 6fd569a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/e2e/default/translations/incorrect-locale.wdio-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ describe('Testing Incorrect locale', () => {
beforeEach(() => {
contact = createContact();
});

afterEach(async () => {
await utils.deleteDocs([ contact._id, `messages-${languageCode}` ]);
await utils.revertSettings(true);
await browser.setCookies({ name: 'locale', value: 'en' });
});

it('should work with incorrect locale', async () => {
await loginPage.cookieLogin();
Expand All @@ -68,5 +62,9 @@ describe('Testing Incorrect locale', () => {

const tasksFilter = await contactElements.getReportTaskFiltersText();
expect(tasksFilter.sort()).to.deep.equal(['1 saptamana', '2 saptamani', 'View all'].sort());

await utils.revertSettings(true);
await utils.deleteDocs([ contact._id, `messages-${languageCode}` ]);
await browser.setCookies({ name: 'locale', value: 'en' });
});
});

0 comments on commit 6fd569a

Please sign in to comment.