Add CORS headers to route fulfillment in stability test

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
sstidl 2026-09-12 12:29:01 +02:00 • committed by GitHub
parent 0bc7a797e9
commit 9eae35e01b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -128,7 +128,7 @@ test.describe("Stability test", () => {
test("clears resource timings after measuring a ping", async ({ page }) => {
await page.goto(`${baseUrls.standalone}/stability.html`);
await page.route(`${baseUrls.backend}/empty.php?cors=true&r=*`, route => route.fulfill({ status: 200, body: "" }));
await page.route(`${baseUrls.backend}/empty.php?cors=true&r=*`, route => route.fulfill({ status: 200, headers: { "Access-Control-Allow-Origin": "*" }, body: "" }));
await expect(
page.evaluate(