e2e 0.15.0 → 0.15.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 +70 -14
- package/dist/.build.json +1 -1
- package/dist/agent/act.js +3 -3
- package/dist/agent/act.js.map +1 -1
- package/dist/agent/error.d.ts +16 -3
- package/dist/agent/error.d.ts.map +1 -1
- package/dist/agent/error.js +25 -6
- package/dist/agent/error.js.map +1 -1
- package/dist/agent/model/tool-choice.d.ts +24 -1
- package/dist/agent/model/tool-choice.d.ts.map +1 -1
- package/dist/agent/model/tool-choice.js +27 -1
- package/dist/agent/model/tool-choice.js.map +1 -1
- package/dist/agent/step-cache.d.ts +14 -3
- package/dist/agent/step-cache.d.ts.map +1 -1
- package/dist/agent/step-cache.js +13 -3
- package/dist/agent/step-cache.js.map +1 -1
- package/dist/agent/tool-loop.d.ts.map +1 -1
- package/dist/agent/tool-loop.js +62 -9
- package/dist/agent/tool-loop.js.map +1 -1
- package/dist/cache/context.d.ts +19 -6
- package/dist/cache/context.d.ts.map +1 -1
- package/dist/cache/context.js +15 -21
- package/dist/cache/context.js.map +1 -1
- package/dist/cli/init/scaffold.d.ts +1 -0
- package/dist/cli/init/scaffold.d.ts.map +1 -1
- package/dist/cli/init/scaffold.js +2 -1
- package/dist/cli/init/scaffold.js.map +1 -1
- package/dist/cli/init/sibling-versions.json +1 -1
- package/dist/cli/signals.d.ts +2 -2
- package/dist/cli/signals.js +2 -2
- package/dist/expect/values.js +1 -1
- package/dist/expect/values.js.map +1 -1
- package/dist/run/execute.d.ts.map +1 -1
- package/dist/run/execute.js +21 -8
- package/dist/run/execute.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/docs/agent-steps.mdx +126 -0
- package/docs/agents.mdx +217 -0
- package/docs/api-testing.mdx +65 -0
- package/docs/authentication.mdx +345 -0
- package/docs/browser.mdx +440 -0
- package/docs/bug-bash.mdx +90 -0
- package/docs/cache.mdx +306 -0
- package/docs/ci.mdx +210 -0
- package/docs/coding-agents.mdx +183 -0
- package/docs/debugging.mdx +291 -0
- package/docs/executors.mdx +243 -0
- package/docs/explore.mdx +174 -0
- package/docs/github.mdx +184 -0
- package/docs/index.mdx +82 -0
- package/docs/integrations/eas.mdx +216 -0
- package/docs/integrations/index.mdx +24 -0
- package/docs/integrations/kernel.mdx +163 -0
- package/docs/migrate/cypress.mdx +124 -0
- package/docs/migrate/detox.mdx +140 -0
- package/docs/migrate/maestro.mdx +229 -0
- package/docs/migrate/playwright.mdx +427 -0
- package/docs/migrate/selenium.mdx +110 -0
- package/docs/mobile-ci.mdx +567 -0
- package/docs/mobile.mdx +555 -0
- package/docs/models.mdx +241 -0
- package/docs/quickstart.mdx +260 -0
- package/docs/reference/agent.mdx +524 -0
- package/docs/reference/app.mdx +72 -0
- package/docs/reference/cli.mdx +817 -0
- package/docs/reference/config.mdx +986 -0
- package/docs/reference/engine.mdx +1362 -0
- package/docs/reference/environment.mdx +113 -0
- package/docs/reference/errors.mdx +143 -0
- package/docs/reference/expect.mdx +513 -0
- package/docs/reference/mcp.mdx +202 -0
- package/docs/reference/mobile.mdx +522 -0
- package/docs/reference/reporters.mdx +216 -0
- package/docs/reference/screen.mdx +688 -0
- package/docs/reference/test.mdx +449 -0
- package/docs/reference/web.mdx +611 -0
- package/docs/security.mdx +292 -0
- package/docs/starting-your-app.mdx +231 -0
- package/docs/subscriptions.mdx +157 -0
- package/docs/telemetry.mdx +185 -0
- package/docs/tools.mdx +150 -0
- package/docs/viewports.mdx +146 -0
- package/docs/writing-an-engine.mdx +316 -0
- package/docs/writing-tests.mdx +256 -0
- package/package.json +15 -9
- package/skills/e2e/SKILL.md +7 -3
- package/skills/e2e/references/agent.md +3 -1
- package/skills/e2e/references/running.md +1 -1
- package/skills/e2e/references/setup.md +16 -6
|
@@ -77,10 +77,11 @@ export default {
|
|
|
77
77
|
tests: 'tests/**/*.e2e.ts',
|
|
78
78
|
targets: [
|
|
79
79
|
{
|
|
80
|
-
engine: web(
|
|
80
|
+
engine: web(),
|
|
81
|
+
app: {
|
|
81
82
|
url: 'http://127.0.0.1:3000',
|
|
82
83
|
command: { executable: 'pnpm', args: ['dev'], log: '.e2e/logs/app.log' },
|
|
83
|
-
}
|
|
84
|
+
},
|
|
84
85
|
},
|
|
85
86
|
],
|
|
86
87
|
// Model behind every agent.* step.
|
|
@@ -146,6 +147,13 @@ target's `app`:
|
|
|
146
147
|
| `environment` | `'test'`, `'staging'`, `'production'`; inferred from the host, labels the report and cache key. |
|
|
147
148
|
| `identity` | Stable identity for cache and session keys when the origin changes per deploy (preview URLs). Defaults to the URL's origin and path, else `bundleId`, else `appPath`. |
|
|
148
149
|
|
|
150
|
+
A Next.js 16 dev server blocks cross-origin requests to its dev resources, so
|
|
151
|
+
a target that opens `127.0.0.1` or `[::1]` while `next dev` identifies as
|
|
152
|
+
`localhost` never hydrates. Add the host to `allowedDevOrigins` in
|
|
153
|
+
`next.config.ts` (`'127.0.0.1'`, or `'[::1]'` for the bracket form). A
|
|
154
|
+
`localhost` target needs no entry, and a production `next start` target is
|
|
155
|
+
unaffected.
|
|
156
|
+
|
|
149
157
|
There is no `services` key in this version: it is an unknown key wherever it
|
|
150
158
|
appears. Start dependency processes before the run, or have `app.command`
|
|
151
159
|
start a script that brings them up and serves the app.
|
|
@@ -285,8 +293,9 @@ export default {
|
|
|
285
293
|
it: for parallel MCP sessions or bug-bash explorers, declare one target per
|
|
286
294
|
device, each naming its `device`.
|
|
287
295
|
- `device` can be a `DeviceProvider` leasing hosted devices, one per worker
|
|
288
|
-
slot: `easSimulators({
|
|
289
|
-
|
|
296
|
+
slot: `easSimulators({ buildId })` from `@e2e-dev/eas` takes the project
|
|
297
|
+
from the app config's `extra.eas.projectId` (`projectId` overrides), reads
|
|
298
|
+
`EXPO_TOKEN`, else the `eas login` session, needs no Xcode or Android SDK, and with `buildId` EAS installs
|
|
290
299
|
the app (omit `app.appPath`). A run must fit one session: `maxDurationMinutes`,
|
|
291
300
|
absent, is the account's cap (40 on a standard plan). `videoTouches: false`
|
|
292
301
|
on the engine for video there.
|
|
@@ -295,8 +304,9 @@ export default {
|
|
|
295
304
|
150) before the next observation, `settle: false` skips it.
|
|
296
305
|
- `screen`, `expect`, `app`, `agent` work unchanged; `test` from
|
|
297
306
|
`@e2e-dev/mobile` types the `device` fixture (`installApp`, `openLink`,
|
|
298
|
-
`setPermission`, `setNetwork`, `setAppearance`, `clearKeychain`, `
|
|
299
|
-
more). Portable suites declare
|
|
307
|
+
`setPermission`, `setNetwork`, `setAppearance`, `clearKeychain`, `fold`
|
|
308
|
+
for an iPhone Duo's hinge, `locator`, more). Portable suites declare
|
|
309
|
+
`requires: ['device']`.
|
|
300
310
|
- No `state` capability: `test.setup` and `session` are unavailable; sign in
|
|
301
311
|
per test with `screen` actions or `agent.act`, both fill a `Secret` (topic
|
|
302
312
|
`writing-tests`, Sign-in sessions).
|