Skip to content

Commit

Permalink
chore(Topic Playwright tests):get rid of timeouts in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yonadavGit committed Dec 19, 2024
1 parent fdc3db0 commit 81363fa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions e2e-tests/tests/topics.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,13 @@ test('Check author page', async ({ context }) => {
test('Check redirection for sourceless topic', async ({ context }) => {
const page = await goToPageWithLang(context, '/topics/Monkey');
const expectedUrl = 'search?q=Monkey&tab=sheet&tvar=1&tsort=relevance&stopics_enFilters=Monkey&svar=1&ssort=relevance';
await page.waitForTimeout(10000)
expect(page.url()).toContain(expectedUrl);
await page.waitForURL((url) => url.includes(expectedUrl));
});

test('Check no redirection when user is admin', async ({ context }) => {
const page = await goToPageWithUser(context, '/topics/Monkey', testAdminUser);
await page.waitForTimeout(10000)
await page.getByRole('link', { name: 'Admin' }).first().isVisible();
await page.waitForSelector('span:has-text("Admin")')

});

test('Filter topics', async ({ context }) => {
Expand Down

0 comments on commit 81363fa

Please sign in to comment.