Skip to content

Fix production e2e tests: block ads in Playwright (#138) #279

Fix production e2e tests: block ads in Playwright (#138)

Fix production e2e tests: block ads in Playwright (#138) #279

Triggered via push April 24, 2024 14:08
Status Success
Total duration 5m 45s
Artifacts 3

ci.yml

on: push
Matrix: Playwright e2e tests
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 3 notices
[webkit] › home.spec.ts:16:7 › Home page › Entire cards should be clickable: e2e/home.spec.ts#L25
1) [webkit] › home.spec.ts:16:7 › Home page › Entire cards should be clickable, clicking on the description or image should take you to the use case Error: locator.click: Element is not visible Call log: - waiting for getByTestId('useCaseIcon').first() - locator resolved to <img alt="" width="72" height="72" data-nimg="1" load…/> - attempting click action - scrolling into view if needed - done scrolling 23 | await page.goBack(); 24 | > 25 | await page.getByTestId(TEST_IDS.homepageCard.useCaseIcon).first().click({ force: true }); | ^ 26 | await expect(page).toHaveURL('/playground'); 27 | }); 28 | }); at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/home.spec.ts:25:71
[firefox] › personalization.spec.ts:54:7 › Personalization › should remember cart contents after reloading page: e2e/personalization.spec.ts#L67
1) [firefox] › personalization.spec.ts:54:7 › Personalization › should remember cart contents after reloading page Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('cartItem').first().getByTestId('cartItemCount') Expected string: "02" Received string: "01" Call log: - expect.toHaveText with timeout 5000ms - waiting for getByTestId('cartItem').first().getByTestId('cartItemCount') - locator resolved to <span data-testid="cartItemCount">01</span> - unexpected value "01" - locator resolved to <span data-testid="cartItemCount">01</span> - unexpected value "01" - locator resolved to <span data-testid="cartItemCount">01</span> - unexpected value "01" - locator resolved to <span data-testid="cartItemCount">01</span> - unexpected value "01" - locator resolved to <span data-testid="cartItemCount">01</span> - unexpected value "01" - locator resolved to <span data-testid="cartItemCount">01</span> - unexpected value "01" - locator resolved to <span data-testid="cartItemCount">01</span> - unexpected value "01" - locator resolved to <span data-testid="cartItemCount">01</span> - unexpected value "01" - locator resolved to <span data-testid="cartItemCount">01</span> - unexpected value "01" 65 | 66 | await expect.poll(() => cartItem.count()).toBe(1); > 67 | await expect(cartItem.getByTestId(CART_ID.cartItemCount)).toHaveText('02'); | ^ 68 | }); 69 | 70 | test('should filter products and remember search history', async ({ page }) => { at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/personalization.spec.ts:67:63
[chromium] › bot-firewall.spec.ts:28:7 › Bot Firewall Demo CHROME_ONLY › Should display bot visit and allow blocking/unblocking its IP address: e2e/bot-firewall.spec.ts#L88
1) [chromium] › bot-firewall.spec.ts:28:7 › Bot Firewall Demo CHROME_ONLY › Should display bot visit and allow blocking/unblocking its IP address Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: getByRole('heading', { name: 'Sorry, you have been blocked' }) Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByRole('heading', { name: 'Sorry, you have been blocked' }) 86 | await page.reload(); 87 | } > 88 | await expect(locator).toBeVisible(); | ^ 89 | }; 90 | at assertElementWhileRepeatedlyReloadingPage (/home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/bot-firewall.spec.ts:88:25) at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/bot-firewall.spec.ts:45:5
🎭 Playwright Run Summary
1 flaky [webkit] › home.spec.ts:16:7 › Home page › Entire cards should be clickable, clicking on the description or image should take you to the use case 1 skipped 32 passed (2.2m)
🎭 Playwright Run Summary
1 flaky [firefox] › personalization.spec.ts:54:7 › Personalization › should remember cart contents after reloading page 3 skipped 30 passed (2.8m)
🎭 Playwright Run Summary
1 flaky [chromium] › bot-firewall.spec.ts:28:7 › Bot Firewall Demo CHROME_ONLY › Should display bot visit and allow blocking/unblocking its IP address 33 passed (3.6m)

Artifacts

Produced during runtime
Name Size
playwright-report-1 Expired
6.7 MB
playwright-report-2 Expired
6.22 MB
playwright-report-3 Expired
1.17 MB