fix(report): badge an exploration with the target its test started on
Merged
OK
14d ago+42+42+01234567890123456789-21-21-01234567890123456789
What and why
- The list reporter's
exploreBadgereadthis.targets[0], the first configured target, while an exploration runs on the target--targetselected (packages/e2e/src/report/list.ts). - It now badges with the target the exploration's test started on, which
test-startedcarries and precedes the explorestartedprogress; the first configured target remains the fallback.
Closes #1089
Verified
Ran it locally: yes
- Two web targets,
capacitythenmixed;e2e explore "Explore the page" --config e2e.targets.config.ts --target mixed --max-steps 1, no API key (the badge prints before the planner needs one). Same command on a main build.
| main | this branch |
|---|---|
❯ |capacity| Exploring Explore the page | ❯ |mixed| Exploring Explore the page |
report.json names run.results[0].targetId: "mixed" on both. The new unit test fails on main with expected ' ❯ |capacity| Exploring ...' to contain '|mixed|'.
Checklist
- Changeset added (
pnpm changeset) for any change to a published package, or the change is testbed, docs, or CI only. - Breaking change: title carries
!, the changeset body names what breaks and what replaces it, and the deprecation warning landed a window earlier (stability policy in CONTRIBUTING.md). - Docs updated in the same PR: the
docs/**/*.mdxpage for the behavior, andskills/e2e/if the skill describes it. - Contract change: emitted
.d.tsreviewed,tests/types/sdk-types.tsupdated; wire change edits the schema and both fixtures. - Engine contract change (
e2e/engine): changesets fore2e,@e2e-dev/web, and@e2e-dev/mobile.