mirror of
https://github.com/librespeed/speedtest.git
synced 2026-10-22 00:01:11 +00:00
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:
parent
0bc7a797e9
commit
9eae35e01b
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue