@intuned/runtime-dev 1.2.5-dev-peer → 1.2.6-dev-peer

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,8 +76,12 @@ 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
79
+ await context.addInitScript(() => {
80
+ console.log("Initialization script executed in the browser context");
81
+ window.addEventListener("DOMContentLoaded", () => {
82
+ console.log("Page loaded - initialization script was executed successfully");
83
+ });
84
+ window.__CUSTOM_INIT_SCRIPT_LOADED__ = true;
81
85
  });
82
86
  let page = context.pages().at(0);
83
87
  if (page) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.2.5-dev-peer",
3
+ "version": "1.2.6-dev-peer",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",