Skip to content

Commit

Permalink
test: add reload
Browse files Browse the repository at this point in the history
  • Loading branch information
JuroUhlar committed Jan 3, 2024
1 parent d03144c commit 6b0f818
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions e2e/bot-firewall.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ test.describe('Bot Firewall Demo', () => {

// Try to visit web-scraping page, should be blocked by Cloudflare
await page.goto('https://staging.fingerprinthub.com/web-scraping', { waitUntil: 'networkidle' });
await page.reload({ waitUntil: 'networkidle' });
await page.getByRole('heading', { name: 'Sorry, you have been blocked' }).waitFor();

Check failure on line 26 in e2e/bot-firewall.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright e2e tests (2, 3)

[firefox] › bot-firewall.spec.ts:12:7 › Bot Firewall Demo › Should display bot visit a allow blocking IP address

1) [firefox] › bot-firewall.spec.ts:12:7 › Bot Firewall Demo › Should display bot visit a allow blocking 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 24 | await page.goto('https://staging.fingerprinthub.com/web-scraping', { waitUntil: 'networkidle' }); 25 | await page.reload({ waitUntil: 'networkidle' }); > 26 | await page.getByRole('heading', { name: 'Sorry, you have been blocked' }).waitFor(); | ^ 27 | 28 | // Unblock IP 29 | await page.goto('/bot-firewall', { waitUntil: 'networkidle' }); at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/bot-firewall.spec.ts:26:79

Check failure on line 26 in e2e/bot-firewall.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright e2e tests (2, 3)

[firefox] › bot-firewall.spec.ts:12:7 › Bot Firewall Demo › Should display bot visit a allow blocking IP address

1) [firefox] › bot-firewall.spec.ts:12:7 › Bot Firewall Demo › Should display bot visit a allow blocking IP address Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.waitFor: Test timeout of 30000ms exceeded. Call log: - waiting for getByRole('heading', { name: 'Sorry, you have been blocked' }) to be visible 24 | await page.goto('https://staging.fingerprinthub.com/web-scraping', { waitUntil: 'networkidle' }); 25 | await page.reload({ waitUntil: 'networkidle' }); > 26 | await page.getByRole('heading', { name: 'Sorry, you have been blocked' }).waitFor(); | ^ 27 | 28 | // Unblock IP 29 | await page.goto('/bot-firewall', { waitUntil: 'networkidle' }); at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/bot-firewall.spec.ts:26:79

Check failure on line 26 in e2e/bot-firewall.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright e2e tests (2, 3)

[firefox] › bot-firewall.spec.ts:12:7 › Bot Firewall Demo › Should display bot visit a allow blocking IP address

1) [firefox] › bot-firewall.spec.ts:12:7 › Bot Firewall Demo › Should display bot visit a allow blocking IP address Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.waitFor: Test timeout of 30000ms exceeded. Call log: - waiting for getByRole('heading', { name: 'Sorry, you have been blocked' }) to be visible 24 | await page.goto('https://staging.fingerprinthub.com/web-scraping', { waitUntil: 'networkidle' }); 25 | await page.reload({ waitUntil: 'networkidle' }); > 26 | await page.getByRole('heading', { name: 'Sorry, you have been blocked' }).waitFor(); | ^ 27 | 28 | // Unblock IP 29 | await page.goto('/bot-firewall', { waitUntil: 'networkidle' }); at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/bot-firewall.spec.ts:26:79

Check failure on line 26 in e2e/bot-firewall.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright e2e tests (3, 3)

[webkit] › bot-firewall.spec.ts:12:7 › Bot Firewall Demo › Should display bot visit a allow blocking IP address

1) [webkit] › bot-firewall.spec.ts:12:7 › Bot Firewall Demo › Should display bot visit a allow blocking 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 24 | await page.goto('https://staging.fingerprinthub.com/web-scraping', { waitUntil: 'networkidle' }); 25 | await page.reload({ waitUntil: 'networkidle' }); > 26 | await page.getByRole('heading', { name: 'Sorry, you have been blocked' }).waitFor(); | ^ 27 | 28 | // Unblock IP 29 | await page.goto('/bot-firewall', { waitUntil: 'networkidle' }); at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/bot-firewall.spec.ts:26:79

Check failure on line 26 in e2e/bot-firewall.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright e2e tests (3, 3)

[webkit] › bot-firewall.spec.ts:12:7 › Bot Firewall Demo › Should display bot visit a allow blocking IP address

1) [webkit] › bot-firewall.spec.ts:12:7 › Bot Firewall Demo › Should display bot visit a allow blocking IP address Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.waitFor: Test timeout of 30000ms exceeded. Call log: - waiting for getByRole('heading', { name: 'Sorry, you have been blocked' }) to be visible 24 | await page.goto('https://staging.fingerprinthub.com/web-scraping', { waitUntil: 'networkidle' }); 25 | await page.reload({ waitUntil: 'networkidle' }); > 26 | await page.getByRole('heading', { name: 'Sorry, you have been blocked' }).waitFor(); | ^ 27 | 28 | // Unblock IP 29 | await page.goto('/bot-firewall', { waitUntil: 'networkidle' }); at /home/runner/work/fingerprintjs-pro-use-cases/fingerprintjs-pro-use-cases/e2e/bot-firewall.spec.ts:26:79

// Unblock IP
Expand Down

0 comments on commit 6b0f818

Please sign in to comment.