@molecule/app-e2e-fixtures-default 1.1.1 → 1.1.2

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.
package/dist/index.d.ts CHANGED
@@ -7,16 +7,19 @@
7
7
  * write ordinary Playwright specs. Which browser runs them is the e2e bond
8
8
  * (`@molecule/app-e2e`):
9
9
  *
10
+ * - **`@molecule/app-e2e-playwright`** launches a real Playwright browser.
11
+ * Every molecule sandbox image bakes Chromium, so this is what a sandbox
12
+ * uses as well as your own machine and CI — the specs run against the app's
13
+ * dev server on `localhost`, no IDE tab involved.
10
14
  * - **`@molecule/app-e2e-preview`** drives the LIVE PREVIEW the molecule.dev
11
- * IDE is already showing — the page the person is looking at, in their own
12
- * browser — over a WebSocket through the dev server. No browser binary in
13
- * the sandbox, nothing to download. This is what a molecule sandbox uses.
14
- * - **`@molecule/app-e2e-playwright`** launches real Playwright browsers. This
15
- * is what your own machine and CI use.
15
+ * IDE is showing — the page the person is looking at, in their own browser —
16
+ * over a WebSocket through the dev server. Pick it with
17
+ * `MOL_E2E_PROVIDER=preview` when the point is that tab.
16
18
  *
17
19
  * The same spec file runs unchanged in both. The provider is picked by
18
- * `resolveE2EProviderName()`: `MOL_E2E_PROVIDER` when set, otherwise `preview`
19
- * inside a molecule sandbox (the `/etc/mol/app-root` marker exists) and
20
+ * `resolveE2EProviderName()`: `MOL_E2E_PROVIDER` when set; otherwise, inside
21
+ * a molecule sandbox (the `/etc/mol/app-root` marker exists), `playwright`
22
+ * when a Playwright browser is installed and `preview` when none is; and
20
23
  * `playwright` everywhere else. The scaffolded `e2e/bonds.ts` bonds the
21
24
  * matching provider (and `test` bonds it by name as a fallback); `test` reads
22
25
  * the same answer to decide whether to launch a browser.
@@ -97,11 +100,13 @@
97
100
  * - **Events.** `page.on('response')`/`'request'` never fire over the preview
98
101
  * (a one-time warning says so); `'console'` and `'pageerror'` do, so the
99
102
  * console-error guard works there too.
100
- * - **The person's browser is the renderer.** If every tab showing the
101
- * preview is closed or asleep, actions wait for a page to reconnect and
102
- * then time out with a message saying so. Keep the IDE tab open (the IDE
103
- * holds a screen wake lock while a build runs) or open the preview URL in
104
- * any other tab — any connected viewer will do.
103
+ * - **Over the preview, the person's browser is the renderer.** If no tab
104
+ * shows the preview, `connect()` fails within seconds — once per run, not
105
+ * once per test — with a message naming the cause and the alternative
106
+ * (`MOL_E2E_PROVIDER=playwright`, a real browser that needs no tab; every
107
+ * sandbox ships one). Keep the IDE tab open (the IDE holds a screen wake
108
+ * lock while a build runs) or open the preview URL in any other tab — any
109
+ * connected viewer will do.
105
110
  * - `createEvaluatePage()` is how a bond that can only run code inside a page
106
111
  * (an `E2ETransport`) gets the whole Playwright-shaped page; the preview
107
112
  * bond uses it, and so can any future one.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiHG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsHG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
package/dist/index.js CHANGED
@@ -7,16 +7,19 @@
7
7
  * write ordinary Playwright specs. Which browser runs them is the e2e bond
8
8
  * (`@molecule/app-e2e`):
9
9
  *
10
+ * - **`@molecule/app-e2e-playwright`** launches a real Playwright browser.
11
+ * Every molecule sandbox image bakes Chromium, so this is what a sandbox
12
+ * uses as well as your own machine and CI — the specs run against the app's
13
+ * dev server on `localhost`, no IDE tab involved.
10
14
  * - **`@molecule/app-e2e-preview`** drives the LIVE PREVIEW the molecule.dev
11
- * IDE is already showing — the page the person is looking at, in their own
12
- * browser — over a WebSocket through the dev server. No browser binary in
13
- * the sandbox, nothing to download. This is what a molecule sandbox uses.
14
- * - **`@molecule/app-e2e-playwright`** launches real Playwright browsers. This
15
- * is what your own machine and CI use.
15
+ * IDE is showing — the page the person is looking at, in their own browser —
16
+ * over a WebSocket through the dev server. Pick it with
17
+ * `MOL_E2E_PROVIDER=preview` when the point is that tab.
16
18
  *
17
19
  * The same spec file runs unchanged in both. The provider is picked by
18
- * `resolveE2EProviderName()`: `MOL_E2E_PROVIDER` when set, otherwise `preview`
19
- * inside a molecule sandbox (the `/etc/mol/app-root` marker exists) and
20
+ * `resolveE2EProviderName()`: `MOL_E2E_PROVIDER` when set; otherwise, inside
21
+ * a molecule sandbox (the `/etc/mol/app-root` marker exists), `playwright`
22
+ * when a Playwright browser is installed and `preview` when none is; and
20
23
  * `playwright` everywhere else. The scaffolded `e2e/bonds.ts` bonds the
21
24
  * matching provider (and `test` bonds it by name as a fallback); `test` reads
22
25
  * the same answer to decide whether to launch a browser.
@@ -97,11 +100,13 @@
97
100
  * - **Events.** `page.on('response')`/`'request'` never fire over the preview
98
101
  * (a one-time warning says so); `'console'` and `'pageerror'` do, so the
99
102
  * console-error guard works there too.
100
- * - **The person's browser is the renderer.** If every tab showing the
101
- * preview is closed or asleep, actions wait for a page to reconnect and
102
- * then time out with a message saying so. Keep the IDE tab open (the IDE
103
- * holds a screen wake lock while a build runs) or open the preview URL in
104
- * any other tab — any connected viewer will do.
103
+ * - **Over the preview, the person's browser is the renderer.** If no tab
104
+ * shows the preview, `connect()` fails within seconds — once per run, not
105
+ * once per test — with a message naming the cause and the alternative
106
+ * (`MOL_E2E_PROVIDER=playwright`, a real browser that needs no tab; every
107
+ * sandbox ships one). Keep the IDE tab open (the IDE holds a screen wake
108
+ * lock while a build runs) or open the preview URL in any other tab — any
109
+ * connected viewer will do.
105
110
  * - `createEvaluatePage()` is how a bond that can only run code inside a page
106
111
  * (an `E2ETransport`) gets the whole Playwright-shaped page; the preview
107
112
  * bond uses it, and so can any future one.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiHG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsHG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-e2e-fixtures-default",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Shared Playwright `test` + `expect` with auto-attached browser console-error/pageerror guard. Every fleet app's e2e specs import from here so a runtime exception (React mount failure, ESM/CJS interop error, unhandled rejection) hard-fails the test instead of silently passing.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -34,8 +34,8 @@
34
34
  "license": "Apache-2.0",
35
35
  "devDependencies": {
36
36
  "@molecule/app-bond": "1.0.2",
37
- "@molecule/app-e2e": "1.0.1",
38
- "@playwright/test": "1.62.0",
37
+ "@molecule/app-e2e": "1.1.0",
38
+ "@playwright/test": "1.63.0",
39
39
  "jsdom": "30.0.1",
40
40
  "@types/node": "26.1.2",
41
41
  "typescript": "6.0.3",