Skip to content

Commit beb99b6

Browse files
committed
attempt to fix flaky test
1 parent aeb8de3 commit beb99b6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/directActivation.e2e.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ test.describe('directActivation Sites - Should automatically add badges', () =>
3636
const url = 'https://github.com/itenium-be/starify-links';
3737
const page = await goToWhitelistedPage(context, url);
3838

39-
await expect(page.locator('img[src*="shields.io/github/stars"]').first()).toBeVisible();
39+
page.on('console', msg => console.log(`[browser] ${msg.text()}`));
40+
41+
await expect(page.locator('img[src*="shields.io/github/stars"]').first()).toBeVisible({timeout: 30_000});
4042

4143
const mikeImg = getBadgeLocator(page, 'itenium-be/Mi-Ke');
4244
await expect(mikeImg).toHaveCount(1);

0 commit comments

Comments
 (0)