Skip to content

Commit

Permalink
Rename test file to better mirror 01_legacyInit
Browse files Browse the repository at this point in the history
  • Loading branch information
benvinegar committed Dec 27, 2024
1 parent dafb7ba commit 07252ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<title>02 Data Attributes</title>
<title>02 Data Attributes Init</title>
</head>
<body>
<script
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test("tracks outbound requests", async ({ page }) => {
const collectRequestPromise = page.waitForRequest((request) =>
request.url().includes("/collect"),
);
await page.goto("http://localhost:3004/02_dataAttrs/");
await page.goto("http://localhost:3004/02_dataAttrsInit/");
// Wait for the request to /collect
const request = await collectRequestPromise;
expect(request).toBeTruthy();
Expand All @@ -14,6 +14,6 @@ test("tracks outbound requests", async ({ page }) => {
const params = new URLSearchParams(url.split("?")[1]);
expect(params.get("sid")).toBe("your-unique-site-id");
expect(params.get("h")).toBe("http://localhost"); // drops port
expect(params.get("p")).toBe("/02_dataAttrs/");
expect(params.get("p")).toBe("/02_dataAttrsInit/");
expect(params.get("r")).toBe("");
});

0 comments on commit 07252ca

Please sign in to comment.