Production E2E Tests #477
Annotations
10 errors and 1 notice
Run Playwright tests on Chrome:
e2e/personalization.spec.ts#L68
1) [chromium] › personalization.spec.ts:55: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"
66 |
67 | await expect.poll(() => cartItem.count()).toBe(1);
> 68 | await expect(cartItem.getByTestId(CART_ID.cartItemCount)).toHaveText('02');
| ^
69 | });
70 |
71 | 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:68:63
|
Run Playwright tests on Chrome:
e2e/personalization.spec.ts#L9
1) [chromium] › personalization.spec.ts:55:7 › Personalization › should remember cart contents after reloading page
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded while running "beforeEach" hook.
7 |
8 | test.describe('Personalization', () => {
> 9 | test.beforeEach(async ({ page }) => {
| ^
10 | await page.goto('/personalization', {
11 | waitUntil: 'networkidle',
12 | });
at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/personalization.spec.ts:9:8
|
Run Playwright tests on Chrome:
e2e/personalization.spec.ts#L10
1) [chromium] › personalization.spec.ts:55:7 › Personalization › should remember cart contents after reloading page
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.goto: Test timeout of 30000ms exceeded.
Call log:
- navigating to "https://demo.fingerprint.com/personalization", waiting until "networkidle"
8 | test.describe('Personalization', () => {
9 | test.beforeEach(async ({ page }) => {
> 10 | await page.goto('/personalization', {
| ^
11 | waitUntil: 'networkidle',
12 | });
13 | await page.getByText('Okay, I understand').click();
at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/personalization.spec.ts:10:16
|
Run Playwright tests on Chrome:
e2e/personalization.spec.ts#L1
1) [chromium] › personalization.spec.ts:55:7 › Personalization › should remember cart contents after reloading page
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
Run Playwright tests on Chrome:
e2e/personalization.spec.ts#L62
1) [chromium] › personalization.spec.ts:55:7 › Personalization › should remember cart contents after reloading page
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for getByTestId('coffeeProduct').first().getByTestId('addToCart')
60 | const cartItem = cartItems.first();
61 |
> 62 | await product.getByTestId(PERS_ID.addToCart).click();
| ^
63 | await cartItem.getByTestId(CART_ID.cartItemPlusOne).click();
64 |
65 | await page.reload();
at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/personalization.spec.ts:62:50
|
Run Playwright tests on Chrome:
e2e/bot-firewall.spec.ts#L1
2) [chromium] › bot-firewall.spec.ts:21:7 › Bot Firewall Demo CHROME_ONLY › Should display bot visit and allow blocking/unblocking its IP address
Test timeout of 30000ms exceeded.
|
Run Playwright tests on Chrome:
e2e/bot-firewall.spec.ts#L40
2) [chromium] › bot-firewall.spec.ts:21:7 › Bot Firewall Demo CHROME_ONLY › Should display bot visit and allow blocking/unblocking its IP address
Error: locator.waitFor: Test timeout of 30000ms exceeded.
Call log:
- waiting for getByRole('heading', { name: 'Sorry, you have been blocked' }) to be visible
38 | await secondTab.goto(WEB_SCRAPING_URL);
39 | await secondTab.reload();
> 40 | await secondTab.getByRole('heading', { name: 'Sorry, you have been blocked' }).waitFor();
| ^
41 |
42 | // Unblock IP
43 | await page.goto('/bot-firewall');
at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/bot-firewall.spec.ts:40:84
|
Run Playwright tests on Chrome:
e2e/bot-firewall.spec.ts#L24
2) [chromium] › bot-firewall.spec.ts:21:7 › Bot Firewall Demo CHROME_ONLY › Should display bot visit and allow blocking/unblocking its IP address
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: getByTestId('alert')
Expected string: "Malicious bot detected"
Received string: ""
Call log:
- expect.toContainText with timeout 5000ms
- waiting for getByTestId('alert')
22 | // Record bot visit in web-scraping page
23 | await page.goto('/web-scraping');
> 24 | await expect(page.getByTestId(TEST_IDS.common.alert)).toContainText('Malicious bot detected');
| ^
25 |
26 | // Check bot visit record and block IP
27 | await page.goto('/bot-firewall');
at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/bot-firewall.spec.ts:24:59
|
Run Playwright tests on Chrome:
e2e/coupon-fraud.spec.ts#L15
3) [chromium] › coupon-fraud.spec.ts:27:7 › Coupon fraud › should apply correct coupon only once ─
Test timeout of 30000ms exceeded while running "beforeEach" hook.
13 |
14 | test.describe('Coupon fraud', () => {
> 15 | test.beforeEach(async ({ page }) => {
| ^
16 | await page.goto('/coupon-fraud');
17 | await resetScenarios(page);
18 | });
at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/coupon-fraud.spec.ts:15:8
|
Run Playwright tests on Chrome:
e2e/resetHelper.ts#L7
3) [chromium] › coupon-fraud.spec.ts:27:7 › Coupon fraud › should apply correct coupon only once ─
Error: page.waitForLoadState: Test timeout of 30000ms exceeded.
at resetHelper.ts:7
5 | export async function resetScenarios(page: Page) {
6 | await page.getByTestId(TEST_IDS.reset.resetButton).click();
> 7 | await page.waitForLoadState('networkidle');
| ^
8 | await page.getByTestId(TEST_IDS.reset.resetSuccess).waitFor({ timeout: 10000 });
9 | }
10 |
at resetScenarios (/home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/resetHelper.ts:7:14)
at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/coupon-fraud.spec.ts:17:5
|
Run Playwright tests on Chrome
1 failed
[chromium] › personalization.spec.ts:55:7 › Personalization › should remember cart contents after reloading page
4 flaky
[chromium] › bot-firewall.spec.ts:21:7 › Bot Firewall Demo CHROME_ONLY › Should display bot visit and allow blocking/unblocking its IP address
[chromium] › coupon-fraud.spec.ts:27:7 › Coupon fraud › should apply correct coupon only once ──
[chromium] › personalization.spec.ts:17:7 › Personalization › should add and remove items from cart
[chromium] › personalization.spec.ts:71:7 › Personalization › should filter products and remember search history
25 passed (7.0m)
|
Loading