Skip to content

Commit aeb8de3

Browse files
committed
navigation.addEventListener on github for SPA triggers too much -- attempt easy CI fix for flaky test (when the removeAllBadges() has been executed but the setTimeout for the new badges hasn't happened yet)
1 parent 314b556 commit aeb8de3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/directActivation.e2e.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ 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-
const badges = await page.locator('img[src*="shields.io/github/stars"]').count();
40-
expect(badges).toBeGreaterThan(0);
39+
await expect(page.locator('img[src*="shields.io/github/stars"]').first()).toBeVisible();
4140

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

0 commit comments

Comments
 (0)