From 6b0f8186abcd95d1c50c958ef01d2cb7a675a33d Mon Sep 17 00:00:00 2001 From: Juraj Uhlar Date: Wed, 3 Jan 2024 14:51:40 +0100 Subject: [PATCH] test: add reload --- e2e/bot-firewall.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/e2e/bot-firewall.spec.ts b/e2e/bot-firewall.spec.ts index cfc18147..c6be13db 100644 --- a/e2e/bot-firewall.spec.ts +++ b/e2e/bot-firewall.spec.ts @@ -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(); // Unblock IP