@intuned/runtime-dev 1.6.0-dev-52-7 → 1.6.0-dev-52-9

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.
@@ -50,12 +50,9 @@ async function getProductionPlaywrightConstructs({
50
50
  const userDataDir = await createUserDirWithPreferences();
51
51
  const context = await playwright.chromium.launchPersistentContext(userDataDir, {
52
52
  headless,
53
- ignoreDefaultArgs: [...getChromiumLaunchArgsToIgnore(), "--headless"],
53
+ viewport: null,
54
54
  proxy,
55
- executablePath: isChrome127There ? chromium127Path : executablePath,
56
- args: extraArgs,
57
- downloadsPath,
58
- userAgent
55
+ downloadsPath
59
56
  });
60
57
  context.once("close", async () => {
61
58
  try {
@@ -82,6 +79,7 @@ async function getProductionPlaywrightConstructs({
82
79
  let page = context.pages().at(0);
83
80
  if (page) {
84
81
  const scriptString = await (0, _fsExtra.readFile)(assetsFile, "utf8");
82
+ await page.evaluate(scriptString);
85
83
  } else {
86
84
  page = await context.newPage();
87
85
  }
@@ -111,6 +109,7 @@ async function getPlaywrightConstructsForMode(mode, cdpAddress, authSession) {
111
109
  if (pages.length > 0) {
112
110
  page = pages[0];
113
111
  const scriptString = await fs.readFile(assetsFile, "utf8");
112
+ await page.evaluate(scriptString);
114
113
  } else {
115
114
  page = await context.newPage();
116
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.6.0-dev-52-7",
3
+ "version": "1.6.0-dev-52-9",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",