@molecule/app-e2e-playwright 1.0.0 → 1.0.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/README.md CHANGED
@@ -1,26 +1,161 @@
1
+ <!--
2
+ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
+ Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
+ Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
+ To change this document, edit the module-level JSDoc in src/index.ts.
6
+ Generated: 2026-09-22T17:17:08.426Z
7
+ -->
8
+
1
9
  # @molecule/app-e2e-playwright
2
10
 
3
- Real Playwright browsers for the e2e bond — the user's machine and CI
11
+ > **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
12
+ > It is written to be read by coding agents as much as by people, and is generated from this
13
+ > package's source — edit `src/index.ts` JSDoc, not this file.
14
+
15
+ E2E bond that opens real Playwright browsers — Chromium, Firefox or WebKit
16
+ with everything Playwright offers: screenshots, traces, videos, network
17
+ interception. It is the bond a molecule sandbox uses too: every sandbox
18
+ image bakes Playwright's Chromium (the headless shell, its system libraries
19
+ and fonts), so `npm run test:e2e` runs there exactly as it does on your own
20
+ machine and in CI, against the app's own dev server on `localhost`, with no
21
+ IDE tab involved. `@molecule/app-e2e-preview` remains the way to drive the
22
+ live preview the person is watching.
23
+
24
+ When the test runner picks the `playwright` provider, `@molecule/app-e2e`'s
25
+ `test` IS Playwright's `test`, so this bond is only reached by scripts that
26
+ call `connect()` themselves (a measurement script, a smoke check outside the
27
+ runner). Under `npx playwright test`, Playwright's own fixtures launch the
28
+ browser as usual.
29
+
30
+ ## Quick Start
31
+
32
+ ```ts
33
+ // e2e/bonds.ts (scaffolded)
34
+ import { resolveE2EProviderName, setProvider } from '@molecule/app-e2e'
35
+ import { provider as playwright } from '@molecule/app-e2e-playwright'
36
+ import { provider as preview } from '@molecule/app-e2e-preview'
37
+
38
+ setProvider(resolveE2EProviderName() === 'preview' ? preview : playwright)
39
+
40
+ // a script
41
+ import { connectPlaywright } from '@molecule/app-e2e-playwright'
42
+ const page = await connectPlaywright({
43
+ baseURL: 'http://localhost:3000',
44
+ viewport: { width: 390, height: 844 },
45
+ })
46
+ await page.goto('/')
47
+ await page.screenshot({ path: 'home-phone.png' })
48
+ await page.close() // closes the context and the browser too
49
+ ```
4
50
 
5
51
  ## Type
6
52
 
7
53
  `provider`
8
54
 
9
- ## Implements
55
+ ## Installation
56
+
57
+ ```bash
58
+ npm install @molecule/app-e2e-playwright @molecule/app-bond @molecule/app-e2e @playwright/test
59
+ ```
60
+
61
+ ## API
62
+
63
+ ### Interfaces
64
+
65
+ #### `PlaywrightConnectOptions`
66
+
67
+ Options for `provider.connect()` beyond the core's.
68
+
69
+ ```typescript
70
+ interface PlaywrightConnectOptions extends E2EConnectOptions {
71
+ /** Browser to launch; default `chromium` (also `MOL_E2E_BROWSER`). */
72
+ browser?: PlaywrightBrowserName
73
+ /** Show the browser window; default headless (also `MOL_E2E_HEADED=1`). */
74
+ headed?: boolean
75
+ /** Extra launch options passed through to Playwright. */
76
+ launchOptions?: LaunchOptions
77
+ }
78
+ ```
79
+
80
+ ### Types
81
+
82
+ #### `PlaywrightBrowserName`
83
+
84
+ Which Playwright browser to launch.
85
+
86
+ ```typescript
87
+ type PlaywrightBrowserName = 'chromium' | 'firefox' | 'webkit'
88
+ ```
89
+
90
+ ### Functions
91
+
92
+ #### `connectPlaywright(options?)`
93
+
94
+ Open a real browser page from any script.
95
+
96
+ ```typescript
97
+ function connectPlaywright(options?: PlaywrightConnectOptions): Promise<Page>
98
+ ```
99
+
100
+ ### Constants
101
+
102
+ #### `provider`
103
+
104
+ The bond: `setProvider(provider)` in your `e2e/bonds.ts`.
105
+
106
+ ```typescript
107
+ const provider: E2EProvider
108
+ ```
109
+
110
+ ## Core Interface
111
+
112
+ Implements `@molecule/app-e2e` interface.
113
+
114
+ ## Bond Wiring
115
+
116
+ Setup function to register this provider with the core interface:
117
+
118
+ ```typescript
119
+ import { setProvider } from '@molecule/app-e2e'
120
+ import { provider } from '@molecule/app-e2e-playwright'
10
121
 
11
- `@molecule/app-e2e`
122
+ export function setupE2ePlaywright(): void {
123
+ setProvider(provider)
124
+ }
125
+ ```
12
126
 
13
127
  ## Injection Notes
14
128
 
15
129
  ### Requirements
16
130
 
17
- - None
131
+ Peer dependencies:
18
132
 
19
- ### Post-Injection Steps
133
+ - `@molecule/app-bond` ^1.0.1
134
+ - `@molecule/app-e2e` ^1.0.0
135
+ - `@playwright/test` ^1.40.0
20
136
 
21
- - Run `npm install` to install dependencies
22
- - Run `npm run build` to compile
137
+ ### Runtime Dependencies
23
138
 
24
- ### Known Limitations
139
+ - `@molecule/app-bond`
140
+ - `@molecule/app-e2e`
141
+ - `@playwright/test`
25
142
 
26
- - None yet
143
+ - On your own machine, browsers are installed once with
144
+ `npx playwright install chromium` (`@playwright/test` never downloads them
145
+ on `npm install`). The launch error says so when they are missing.
146
+ - Inside a molecule sandbox nothing is installed by hand: the image ships
147
+ Chromium where Playwright looks by default (`~/.cache/ms-playwright` of
148
+ the sandbox user; `PLAYWRIGHT_BROWSERS_PATH` points there too), pinned to
149
+ the same Playwright version the scaffold's `@playwright/test` uses. It is
150
+ the headless shell, so `headless: false` has no display to open, and the
151
+ `firefox`/`webkit` engines are not baked — Chromium is the sandbox engine.
152
+ Chromium runs with Playwright's default `chromiumSandbox: false` (the
153
+ container is the sandbox), and `/tmp` there is a 256 MB tmpfs, which is
154
+ where its per-launch profile goes.
155
+ - `MOL_E2E_BROWSER=firefox|webkit` picks the engine; `MOL_E2E_HEADED=1`
156
+ shows the window (both are for your own machine).
157
+ - Budget, measured inside a sandbox at the free tier's cap (1 CPU, 1280 MB,
158
+ 2026-09-22): the browser launches in 0.5–0.8 s; a spec file of four to
159
+ seven tests takes 4–13 s including the runner's startup, 0.1–3 s per test;
160
+ Chromium's peak RSS is ~170 MB and the runner's ~190 MB. Run ONE spec file
161
+ per command so a run never meets the sandbox's per-command cap.
package/dist/index.d.ts CHANGED
@@ -1,9 +1,12 @@
1
1
  /**
2
- * E2E bond that opens real Playwright browsers. Inside a molecule sandbox the
3
- * same specs drive the live preview through `@molecule/app-e2e-preview`; on
4
- * your own machine and in CI this bond gives them Chromium, Firefox or WebKit
5
- * with everything Playwright offers screenshots, traces, videos, network
6
- * interception.
2
+ * E2E bond that opens real Playwright browsers Chromium, Firefox or WebKit
3
+ * with everything Playwright offers: screenshots, traces, videos, network
4
+ * interception. It is the bond a molecule sandbox uses too: every sandbox
5
+ * image bakes Playwright's Chromium (the headless shell, its system libraries
6
+ * and fonts), so `npm run test:e2e` runs there exactly as it does on your own
7
+ * machine and in CI, against the app's own dev server on `localhost`, with no
8
+ * IDE tab involved. `@molecule/app-e2e-preview` remains the way to drive the
9
+ * live preview the person is watching.
7
10
  *
8
11
  * When the test runner picks the `playwright` provider, `@molecule/app-e2e`'s
9
12
  * `test` IS Playwright's `test`, so this bond is only reached by scripts that
@@ -29,13 +32,25 @@
29
32
  * ```
30
33
  *
31
34
  * @remarks
32
- * - Browsers are installed once with `npx playwright install chromium`
33
- * (`@playwright/test` never downloads them on `npm install`). The launch
34
- * error says so when they are missing.
35
+ * - On your own machine, browsers are installed once with
36
+ * `npx playwright install chromium` (`@playwright/test` never downloads them
37
+ * on `npm install`). The launch error says so when they are missing.
38
+ * - Inside a molecule sandbox nothing is installed by hand: the image ships
39
+ * Chromium where Playwright looks by default (`~/.cache/ms-playwright` of
40
+ * the sandbox user; `PLAYWRIGHT_BROWSERS_PATH` points there too), pinned to
41
+ * the same Playwright version the scaffold's `@playwright/test` uses. It is
42
+ * the headless shell, so `headless: false` has no display to open, and the
43
+ * `firefox`/`webkit` engines are not baked — Chromium is the sandbox engine.
44
+ * Chromium runs with Playwright's default `chromiumSandbox: false` (the
45
+ * container is the sandbox), and `/tmp` there is a 256 MB tmpfs, which is
46
+ * where its per-launch profile goes.
35
47
  * - `MOL_E2E_BROWSER=firefox|webkit` picks the engine; `MOL_E2E_HEADED=1`
36
- * shows the window.
37
- * - Do not use this bond inside a molecule sandbox: there is no browser there
38
- * by design, and the preview bond is the one that works.
48
+ * shows the window (both are for your own machine).
49
+ * - Budget, measured inside a sandbox at the free tier's cap (1 CPU, 1280 MB,
50
+ * 2026-09-22): the browser launches in 0.5–0.8 s; a spec file of four to
51
+ * seven tests takes 4–13 s including the runner's startup, 0.1–3 s per test;
52
+ * Chromium's peak RSS is ~170 MB and the runner's ~190 MB. Run ONE spec file
53
+ * per command so a run never meets the sandbox's per-command cap.
39
54
  *
40
55
  * @module
41
56
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC3D,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC3D,cAAc,YAAY,CAAA"}
package/dist/index.js CHANGED
@@ -1,9 +1,12 @@
1
1
  /**
2
- * E2E bond that opens real Playwright browsers. Inside a molecule sandbox the
3
- * same specs drive the live preview through `@molecule/app-e2e-preview`; on
4
- * your own machine and in CI this bond gives them Chromium, Firefox or WebKit
5
- * with everything Playwright offers screenshots, traces, videos, network
6
- * interception.
2
+ * E2E bond that opens real Playwright browsers Chromium, Firefox or WebKit
3
+ * with everything Playwright offers: screenshots, traces, videos, network
4
+ * interception. It is the bond a molecule sandbox uses too: every sandbox
5
+ * image bakes Playwright's Chromium (the headless shell, its system libraries
6
+ * and fonts), so `npm run test:e2e` runs there exactly as it does on your own
7
+ * machine and in CI, against the app's own dev server on `localhost`, with no
8
+ * IDE tab involved. `@molecule/app-e2e-preview` remains the way to drive the
9
+ * live preview the person is watching.
7
10
  *
8
11
  * When the test runner picks the `playwright` provider, `@molecule/app-e2e`'s
9
12
  * `test` IS Playwright's `test`, so this bond is only reached by scripts that
@@ -29,13 +32,25 @@
29
32
  * ```
30
33
  *
31
34
  * @remarks
32
- * - Browsers are installed once with `npx playwright install chromium`
33
- * (`@playwright/test` never downloads them on `npm install`). The launch
34
- * error says so when they are missing.
35
+ * - On your own machine, browsers are installed once with
36
+ * `npx playwright install chromium` (`@playwright/test` never downloads them
37
+ * on `npm install`). The launch error says so when they are missing.
38
+ * - Inside a molecule sandbox nothing is installed by hand: the image ships
39
+ * Chromium where Playwright looks by default (`~/.cache/ms-playwright` of
40
+ * the sandbox user; `PLAYWRIGHT_BROWSERS_PATH` points there too), pinned to
41
+ * the same Playwright version the scaffold's `@playwright/test` uses. It is
42
+ * the headless shell, so `headless: false` has no display to open, and the
43
+ * `firefox`/`webkit` engines are not baked — Chromium is the sandbox engine.
44
+ * Chromium runs with Playwright's default `chromiumSandbox: false` (the
45
+ * container is the sandbox), and `/tmp` there is a 256 MB tmpfs, which is
46
+ * where its per-launch profile goes.
35
47
  * - `MOL_E2E_BROWSER=firefox|webkit` picks the engine; `MOL_E2E_HEADED=1`
36
- * shows the window.
37
- * - Do not use this bond inside a molecule sandbox: there is no browser there
38
- * by design, and the preview bond is the one that works.
48
+ * shows the window (both are for your own machine).
49
+ * - Budget, measured inside a sandbox at the free tier's cap (1 CPU, 1280 MB,
50
+ * 2026-09-22): the browser launches in 0.5–0.8 s; a spec file of four to
51
+ * seven tests takes 4–13 s including the runner's startup, 0.1–3 s per test;
52
+ * Chromium's peak RSS is ~170 MB and the runner's ~190 MB. Run ONE spec file
53
+ * per command so a run never meets the sandbox's per-command cap.
39
54
  *
40
55
  * @module
41
56
  */
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC3D,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC3D,cAAc,YAAY,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAqB,KAAK,IAAI,EAAU,MAAM,kBAAkB,CAAA;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD,OAAO,KAAK,EAAyB,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAcjF,gEAAgE;AAChE,eAAO,MAAM,QAAQ,EAAE,WAgCtB,CAAA;AAED,gDAAgD;AAChD,eAAO,MAAM,iBAAiB,GAAI,UAAS,wBAA6B,KAAG,OAAO,CAAC,IAAI,CAC5D,CAAA"}
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAqB,KAAK,IAAI,EAAU,MAAM,kBAAkB,CAAA;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD,OAAO,KAAK,EAAyB,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAcjF,gEAAgE;AAChE,eAAO,MAAM,QAAQ,EAAE,WAkCtB,CAAA;AAED,gDAAgD;AAChD,eAAO,MAAM,iBAAiB,GAAI,UAAS,wBAA6B,KAAG,OAAO,CAAC,IAAI,CAC5D,CAAA"}
package/dist/provider.js CHANGED
@@ -27,7 +27,9 @@ export const provider = {
27
27
  catch (error) {
28
28
  const message = String(error.message ?? error);
29
29
  if (/Executable doesn't exist|browserType\.launch/.test(message)) {
30
- throw new Error(`${message}\n\nInstall the browsers once with: npx playwright install ${browserName(options)}\n(inside a molecule sandbox use @molecule/app-e2e-preview instead — it drives the live preview and needs no browser).`, { cause: error });
30
+ throw new Error(`${message}\n\nInstall the browsers once with: npx playwright install ${browserName(options)}\n` +
31
+ '(a molecule sandbox ships Chromium under PLAYWRIGHT_BROWSERS_PATH — if it is missing there, the sandbox image predates it; ' +
32
+ 'MOL_E2E_PROVIDER=preview drives the live IDE preview instead).', { cause: error });
31
33
  }
32
34
  throw error;
33
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,OAAO,MAAM,cAAc,CAAA;AAElC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAa,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAMvE,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,CAAA;AAE9C,MAAM,WAAW,GAAG,CAAC,OAAiC,EAAyB,EAAE;IAC/E,MAAM,IAAI,GACR,OAAO,CAAC,OAAO;QACd,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAuC;QACrE,UAAU,CAAA;IACZ,IAAI,CAAC,CAAC,IAAI,IAAI,QAAQ,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,oBAAoB,IAAI,qCAAqC,CAAC,CAAA;IAChF,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,gEAAgE;AAChE,MAAM,CAAC,MAAM,QAAQ,GAAgB;IACnC,IAAI,EAAE,YAAY;IAClB,KAAK,CAAC,OAAO,CAAC,UAAoC,EAAE;QAClD,MAAM,Q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/D,IAAI,OAAO,CAAC,iBAAiB;YAAE,OAAO,CAAC,2BAA2B,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAA;QAC7F,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,OAAO,EAAE,CAAA;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACvC,IAAI,CAAC,KAAK,GAAG,KAAK,EAAE,YAA2C,EAAE,EAAE;YACjE,MAAM,SAAS,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;YACpD,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;YAC5C,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;QAC9C,CAAC,CAAA;QACD,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA;AAED,gDAAgD;AAChD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,UAAoC,EAAE,EAAiB,EAAE,CACzF,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-e2e-playwright",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "E2E bond that opens real Playwright browsers — the same specs that drive the live preview inside a molecule sandbox run here on your machine and in CI, with screenshots, traces and network interception.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -32,7 +32,7 @@
32
32
  "url": "https://github.com/molecule-dev/molecule.git",
33
33
  "directory": "packages/app/bonds/e2e/playwright"
34
34
  },
35
- "homepage": "https://molecule.dev",
35
+ "homepage": "https://www.molecule.dev/packages/app-e2e-playwright",
36
36
  "bugs": {
37
37
  "url": "https://github.com/molecule-dev/molecule/issues"
38
38
  },
@@ -45,9 +45,9 @@
45
45
  "@playwright/test": "^1.40.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@molecule/app-bond": "1.0.1",
49
- "@molecule/app-e2e": "1.0.0",
50
- "@playwright/test": "1.62.0",
48
+ "@molecule/app-bond": "1.0.2",
49
+ "@molecule/app-e2e": "1.1.0",
50
+ "@playwright/test": "1.63.0",
51
51
  "@types/node": "26.1.2",
52
52
  "typescript": "6.0.3",
53
53
  "vitest": "4.1.11"