@next/playwright 16.2.0-canary.99 → 16.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +7 -4
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -38,10 +38,13 @@ async function instant(page, fn, options) {
38
38
  // The cookie triggers the CookieStore change event in
39
39
  // navigation-testing-lock.ts, which acquires the in-memory navigation lock.
40
40
  const { hostname } = new URL(resolveURL(page, options));
41
- await (0, step_1.step)('Acquire Instant Lock', () => page
42
- .context()
43
- .addCookies([
44
- { name: INSTANT_COOKIE, value: '[0]', domain: hostname, path: '/' },
41
+ await (0, step_1.step)('Acquire Instant Lock', () => page.context().addCookies([
42
+ {
43
+ name: INSTANT_COOKIE,
44
+ value: JSON.stringify([0, `p${Math.random()}`]),
45
+ domain: hostname,
46
+ path: '/',
47
+ },
45
48
  ]));
46
49
  try {
47
50
  return await fn();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next/playwright",
3
- "version": "16.2.0-canary.99",
3
+ "version": "16.2.0",
4
4
  "repository": {
5
5
  "url": "vercel/next.js",
6
6
  "directory": "packages/next-playwright"
@@ -26,6 +26,7 @@
26
26
  }
27
27
  },
28
28
  "devDependencies": {
29
+ "@playwright/test": "1.58.2",
29
30
  "typescript": "5.9.2"
30
31
  }
31
32
  }