test-proxy-recorder 0.3.5 → 0.3.8

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.
@@ -176,6 +176,14 @@ var playwrightProxy = {
176
176
  await page.setExtraHTTPHeaders({
177
177
  [RECORDING_ID_HEADER]: sessionId
178
178
  });
179
+ const fallbackProxyPort = getProxyPort();
180
+ await page.context().addCookies([
181
+ {
182
+ name: "proxy-recording-id",
183
+ value: encodeURIComponent(sessionId),
184
+ url: `http://localhost:${fallbackProxyPort}`
185
+ }
186
+ ]);
179
187
  await setProxyMode(mode, sessionId, timeout);
180
188
  if (clientSideOptions?.url) {
181
189
  await setupClientSideRecording(
@@ -1,3 +1,3 @@
1
1
  import '@playwright/test';
2
- export { f as ClientSideRecordingOptions, P as PlaywrightTestInfo, e as cleanupSession, g as generateSessionId, p as playwrightProxy, s as setProxyMode, b as startRecording, c as startReplay, d as stopProxy } from '../index-BlBWqSE4.cjs';
2
+ export { f as ClientSideRecordingOptions, P as PlaywrightTestInfo, e as cleanupSession, g as generateSessionId, p as playwrightProxy, s as setProxyMode, b as startRecording, c as startReplay, d as stopProxy } from '../index-BloXCw69.cjs';
3
3
  import 'node:http';
@@ -1,3 +1,3 @@
1
1
  import '@playwright/test';
2
- export { f as ClientSideRecordingOptions, P as PlaywrightTestInfo, e as cleanupSession, g as generateSessionId, p as playwrightProxy, s as setProxyMode, b as startRecording, c as startReplay, d as stopProxy } from '../index-BlBWqSE4.js';
2
+ export { f as ClientSideRecordingOptions, P as PlaywrightTestInfo, e as cleanupSession, g as generateSessionId, p as playwrightProxy, s as setProxyMode, b as startRecording, c as startReplay, d as stopProxy } from '../index-BloXCw69.js';
3
3
  import 'node:http';
@@ -170,6 +170,14 @@ var playwrightProxy = {
170
170
  await page.setExtraHTTPHeaders({
171
171
  [RECORDING_ID_HEADER]: sessionId
172
172
  });
173
+ const fallbackProxyPort = getProxyPort();
174
+ await page.context().addCookies([
175
+ {
176
+ name: "proxy-recording-id",
177
+ value: encodeURIComponent(sessionId),
178
+ url: `http://localhost:${fallbackProxyPort}`
179
+ }
180
+ ]);
173
181
  await setProxyMode(mode, sessionId, timeout);
174
182
  if (clientSideOptions?.url) {
175
183
  await setupClientSideRecording(