Skip to content

Commit

Permalink
add changes from #9611
Browse files Browse the repository at this point in the history
  • Loading branch information
tatilepizs committed Nov 12, 2024
1 parent b506a7e commit 739f56d
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 @@ -35,12 +35,6 @@ describe('Testing Incorrect locale', () => {
await utils.saveDoc(place);
await sentinelUtils.waitForSentinel();
});

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

it('should work with incorrect locale', async () => {
const waitForServiceWorker = await utils.waitForApiLogs(utils.SW_SUCCESSFUL_REGEX);
Expand All @@ -62,5 +56,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([ place._id, `messages-${LANGUAGE_CODE}` ]);
await browser.setCookies({ name: 'locale', value: 'en' });
});
});

0 comments on commit 739f56d

Please sign in to comment.