Fix production e2e tests: block ads in Playwright (#138) #279
Annotations
1 error and 1 notice
Run Playwright tests:
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
|
Run Playwright tests
1 flaky
[firefox] › personalization.spec.ts:54:7 › Personalization › should remember cart contents after reloading page
3 skipped
30 passed (2.8m)
|
Loading