@intuned/runtime-dev 1.6.0-dev-52-2 → 1.6.0-dev-52-3
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.
|
@@ -76,6 +76,9 @@ async function getProductionPlaywrightConstructs({
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
const assetsFile = _path.default.join(__dirname, "./assets/browser_scripts.js");
|
|
79
|
+
await context.addInitScript({
|
|
80
|
+
path: assetsFile
|
|
81
|
+
});
|
|
79
82
|
let page = context.pages().at(0);
|
|
80
83
|
if (page) {
|
|
81
84
|
const scriptString = await (0, _fsExtra.readFile)(assetsFile, "utf8");
|
|
@@ -101,6 +104,9 @@ async function getPlaywrightConstructsForMode(mode, cdpAddress, authSession) {
|
|
|
101
104
|
throw new Error("no context found");
|
|
102
105
|
}
|
|
103
106
|
const assetsFile = _path.default.join(__dirname, "./assets/browser_scripts.js");
|
|
107
|
+
await context.addInitScript({
|
|
108
|
+
path: assetsFile
|
|
109
|
+
});
|
|
104
110
|
const pages = await context.pages();
|
|
105
111
|
let page = null;
|
|
106
112
|
if (pages.length > 0) {
|