Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ review unless scope/risk changes. Prefer existing runners over parallel wrappers

TesterArmy `e2e` is the default for new/affected journeys across all apps/worktrees:
`@e2e-dev/web` for browsers, `@e2e-dev/mobile` for native; API/CLI uses its real interface.
New journeys are written with `npx e2e run --watch` from `tools/e2e` (e2e 0.21.3).
New journeys are written with `npx e2e run --watch` from `tools/e2e` (e2e 0.22.0).
Watch reruns when a test file, a source file next to the tests, or the config is saved.
It is an authoring loop, not part of `verify:pr` or CI.
Read the installed skill/topic, reuse guarded runners/fixtures and keep provider budgets.
Expand Down
54 changes: 48 additions & 6 deletions tools/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ their separate identified Release/device requirements. See the

Follow https://docs.expo.dev/guides/using-e2e/ and the skill bundled in this
package's `node_modules/e2e/skills/e2e/`. Dependencies and lockfile are isolated
from the application's Playwright version. The locked runtime is `e2e` 0.21.3,
`@e2e-dev/web` 0.15.3, `@e2e-dev/mobile` 0.12.4 and `agent-device` 0.21.35
from the application's Playwright version. The locked runtime is `e2e` 0.22.0,
`@e2e-dev/web` 0.15.4, `@e2e-dev/mobile` 0.12.5 and `agent-device` 0.21.35
(a direct pin with a matching override for the mobile engine). `SDK_PINS` in `qualification.mjs`
holds the same four versions; the runner refuses another installed version and
a report from another runner or engine. The engine peer ranges accept e2e 0.21.3.
Web 0.15.3 drives `playwright-core` 1.64.1, so the matcher Playwright moves to
a report from another runner or engine. The engine peer ranges accept e2e 0.22.0.
Web 0.15.4 drives `playwright-core` 1.64.1, so the matcher Playwright moves to
1.64.1 too and both share one Chromium build.
Node 24.22.1 is pinned by the root mise file and satisfies e2e 0.21's
Node 24.22.1 is pinned by the root mise file and satisfies e2e 0.22's
`^22.22.3 || >=24.8.0` requirement. The runner uses e2e's bundled TypeScript
loader; the scoped public matcher preload is unchanged.

Expand All @@ -37,6 +37,48 @@ seeds it into the next output directory; a seed the run does not replace is
deleted. A blocked run, or one where no test passed, leaves the kept report as
it was. Without that file, files start in collection order.

What 0.22.0 changes here:

- A secret fill no longer stops the model's screenshots (#1437, breaking
upstream). Secure fields stay masked in captures and secret values stay
redacted from text, but a model step after a fill now sees the screen. No step
here combines the two: ordinary regressions make no model call (qualification
refuses any token), personas sign in through mock profiles, and the journeys
that type a password (native `credentials.user(...)`, web local-backend
accounts) use no model. A future model journey that signs in must use
disposable test accounts.
`StepExecutorContext.pixelsTainted` is gone; nothing here read it.
- A test whose cleanup fails now ends the run with exit 3 and is named in the
summary (#1233). `run.mjs` already refused such a report (`cleanup` other than
`complete`); now the SDK exit code says so too and no `qualification.json` is
written.
- Mobile 0.12.5: a step on a control the keyboard is moving waits for it to land
(#1297), a locator whose target changes during the transition wait or a newer
snapshot is resolved again (#1300, #1413), `fill` and `clear` re-read the field
first (#1410), and `press('Enter')` taps an unfocused field before the key
(#1421). It depends on `agent-device` 0.21.35 itself, the version already pinned,
so the override now matches it. The iOS keyboard helpers in
`native-backend-fixtures.ts` and the 44 pt tab clearance stay until a native run
shows they are no longer needed.
- Locators take `filter({ hasNot, hasNotText })` as in Playwright (#1334, #1037),
and `toHaveCount(0)` reads a locator under a closed frame as zero (#1354).
`agent.assert` and `agent.waitFor` take `params` like `agent.act` (#1463).
- Web 0.15.4: `web()` targets accept `app.permissions` grants such as
`clipboard-read` (#1429), `browser.waitForDownloads()` collects several files
(#1048), `route.fetch()` reads the upstream response in a handler (#1044), and
screenshots no longer edit inputs' inline style to hide the caret (#1288). The
share journeys keep their scripted clipboard, which also covers a refused copy.
- `app.startRecording()` and `app.stopRecording()` film one span of a test that
sets `{ video: 'off' }` (#1381).
- `e2e mcp` sessions get `run_code`, which runs test lines such as an `expect`
on the live screen, and `open_session` takes a `test`
(`tests/<file>.e2e.ts:<line>`) to run it and stay on the screen where it
passed or failed (#1315, #1316). A config tool named `run_code` is refused;
none is defined here.
- `--reporter ''` is a usage error (#1351); `run.mjs` and the bug bash always
pass named reporters.
See the [official changelog](https://github.com/tester-army/e2e/blob/main/packages/e2e/CHANGELOG.md#0220).

What 0.21.3 changes here:

- `app.screenshot()` returns the absolute path of the file it wrote, not a path
Expand Down Expand Up @@ -128,7 +170,7 @@ its applicable checks pass without another generic permission request. Keep exac
pins and existing provider budgets; an upgrade does not enable a provider or Jev.

New journeys are written from this directory with `npx e2e run --watch`
(e2e 0.21.3). Watch reruns when a test, a neighbouring source file, or the
(e2e 0.22.0). Watch reruns when a test, a neighbouring source file, or the
config is saved. It is for authoring. Qualifying runs stay on `run.mjs`.

From the repository root:
Expand Down
2 changes: 1 addition & 1 deletion tools/e2e/bugbash-prerelease.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function chatgptLoginPresent(env = process.env) {
function explore(charter, env) {
const cli = join(here, 'node_modules/e2e/dist/cli/bin.js');
if (!existsSync(cli)) {
console.error('e2e 0.21.3 n\'est pas installe. npm run test:testerarmy:setup && npm run test:testerarmy:browsers');
console.error('e2e 0.22.0 n\'est pas installe. npm run test:testerarmy:setup && npm run test:testerarmy:browsers');
return 2;
}
console.log(`\n# ${charter.slug}`);
Expand Down
2 changes: 1 addition & 1 deletion tools/e2e/install-browsers.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function packages(t, matcherVersion = '1.64.1') {
writeFileSync(join(directory, 'package.json'), JSON.stringify({ version, ...extra }));
return directory;
}
const web = pkg('@e2e-dev/web', '0.15.3', { main: 'index.js' });
const web = pkg('@e2e-dev/web', '0.15.4', { main: 'index.js' });
writeFileSync(join(web, 'index.js'), '');
pkg('playwright', matcherVersion);
pkg('playwright-core', 'unrelated-root-version');
Expand Down
2 changes: 1 addition & 1 deletion tools/e2e/native-journeys.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Le cas `native-real-dictation` reste hors sélection : le build actuel fournit u

Conserver les rapports immuables des runs utiles sous `tools/e2e/.e2e/dreamer-<platform>/<RUN>/`, puis un seul [rapport de synthèse](../../doc_web_interne/docs/qa/dreamer-native-missing-journeys-20261022.md) : pour chaque parcours et plateforme, résultat, première erreur éventuelle, trace/log utile, reçu Release, révisions des tests et du binaire, identité du backend et commande exacte. Une campagne fraîche « 6/6 » exige un même run identifié avec les six cas attendus réussis et les contrôles d’identité/cleanup ; six cas réussis répartis entre plusieurs runs constituent une **preuve composite**, pas une campagne fraîche 6/6.

Une preuve antérieure peut être réutilisée si les changements ultérieurs laissent le comportement, les entrées et la configuration concernés inchangés, avec justification du périmètre dans la synthèse. Conserver son ancienne révision et son run : ne jamais les réétiqueter comme exécutés sur le nouveau head. Les cas affectés sont rejoués sur le candidat identifié ; un échec, une exclusion ou une absence de replay restent visibles. Les cinq cas de la sélection iOS ne qualifient pas le sixième cas vocal. Ne pas déduire un succès d’un code SDK seul, d’un test listé ou ignoré. Les parcours avec connexion utilisent des secrets gérés par TesterArmy. Depuis e2e 0.21.3, `app.screenshot()` et les captures d'assertion ou d'échec continuent après la saisie d'un secret, champs sécurisés masqués ; le modèle ne reçoit toujours aucun pixel après la saisie.
Une preuve antérieure peut être réutilisée si les changements ultérieurs laissent le comportement, les entrées et la configuration concernés inchangés, avec justification du périmètre dans la synthèse. Conserver son ancienne révision et son run : ne jamais les réétiqueter comme exécutés sur le nouveau head. Les cas affectés sont rejoués sur le candidat identifié ; un échec, une exclusion ou une absence de replay restent visibles. Les cinq cas de la sélection iOS ne qualifient pas le sixième cas vocal. Ne pas déduire un succès d’un code SDK seul, d’un test listé ou ignoré. Les parcours avec connexion utilisent des secrets gérés par TesterArmy. Depuis e2e 0.21.3, `app.screenshot()` et les captures d'assertion ou d'échec continuent après la saisie d'un secret, champs sécurisés masqués. Depuis e2e 0.22.0, le modèle reçoit aussi l'écran après la saisie : ces parcours n'appellent aucun modèle, et un parcours avec modèle qui se connecte doit utiliser un compte de test jetable.

Les manifestes, mots de passe, clés, jetons de contrôle, profils locaux, logs et artefacts restent hors Git. `expo.env` ne contient que la configuration publique client ; la clé service-role et le jeton de contrôle ne doivent jamais devenir des variables `EXPO_PUBLIC_*`. Les ports sont locaux et la pile ne vise aucun compte hébergé.

Expand Down
Loading