Repository navigation
feat(test): add test.fixme - #1887
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 15 files
Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.
View guided diff | Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 3 files (changes from recent commits).
Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.
View guided diff | Re-trigger cubic
|
Note 🤖 Claude Opus 5.5 responding on behalf of @samanyudas This is ready for review at Three calls are yours, listed under "Open questions" in the description:
|
okwasniewski
left a comment
There was a problem hiding this comment.
[claude-opus-5-5] automated review on behalf of @okwasniewski
Reviewed at 93e1ace, merged with main fabb0c0. Compared with Playwright 1.65.1 _modifier, test.skip/skipIf on main, and #1858 (test.todo).
Must fix
docs/zhis missing. The Chinese docs landed on main (#1886) after this branch was cut, and once main is merged in,check-docs-translationsfails:Merge main, then mirror thedocs/zh/reference/test.mdx: heading #12 is h3, the English page has h4 (42 vs 41 in all) docs/zh/reference/test.mdx: code block #5 differs from the English page's (38 vs 37 in all)docs/jachanges intodocs/zh/reference/test.mdx(the table row, the#### test.fixmesection, the serial-group row, and the Types block). Also updatedocs/zh/migrate/playwright.mdx. The checker doesn't catch it, but line 165 (the "same" row) and line 279 (which still liststest.fixme()as missing and shows{ skip: 'reason' }) are now out of date.
Should fix
packages/e2e/src/collect/registry.ts:674: the registration form oftest.skip(title, fn)still callsregisterTestdirectly, whiletest.fixme(title, fn)goes throughregistrar(api, true). So the same thing now has two paths, and in a serial group they fail with different messages. That isn't a refactor ofvalidateTestOptions, just one line:return registrar('test.skip()', true)(call.title, { skip: true }, call.fn as TestFn);. I tried it and all 3915 unit tests pass. With it, skip, fixme, skipIf, and runIf all name themselves in a serial group, and the "Open questions" item goes away. Please add the assertion next to the fixme one inregistry.test.ts.
Playwright parity (checked against playwright/lib/common/index.js _modifier)
(title, fn), and(),(reason),(condition, reason)in a body orbeforeEach: match, including the skipped status and the reason as the description.- Not covered, all documented as gaps or consistent with
test.skipon main:(title, details, fn); a describe- or file-scopetest.fixme(...)ortest.fixme(fn, reason), which Playwright applies to the whole group and e2e makes aCOLLECTION_ERROR, the same asskip;test.describe.fixme, with{ skip: 'fixme' }as the workaround. Playwright also allows a fixme member in a serial describe, and e2e rejects it, the same asskip.
Overlap with #1858: no conflicts in source files, only test-file conflicts in sdk-types.ts and registry.test.ts that are easy to resolve. #1858's NO_TESTS change doesn't touch the skipped explicitly line here.
Verified
registry.test.ts+select.test.ts: 98 passed.runner-lifecycle.test.ts: 40 passed.tsc --noEmitand oxlint are clean on the merged tree.- Mutants, each caught by a test failing: dropping the serial guard (
registrar('test.fixme()')), passing'test.skip'as the api name, dropping{ skip: fixmeReason() }, and dropping the blank-reason trim (integration test, on a rebuilt dist). - CI at 93e1ace: all 28 checks green or skipped. The docs translation failure above only shows up after merging main.
|
Note 🤖 Claude Opus 5.5 responding on behalf of @samanyudas Both asks from the review are fixed. The branch is merged with main at
|
There was a problem hiding this comment.
0 issues found across 6 files (changes from recent commits).
Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.
View guided diff | Re-trigger cubic
okwasniewski
left a comment
There was a problem hiding this comment.
[claude-opus-5-5] automated review on behalf of @okwasniewski
Re-checked at e9251d6 (merges cleanly into main 66d07ca). Both asks from the 11-17 review are done, and the new commits add no regressions.
Earlier asks
docs/zh: done.docs/zh/reference/test.mdxhas the members row, the#### test.fixmesection, the serial-group rows, and the Types block.docs/zh/migrate/playwright.mdxlines 165 and 279 match the English page.pnpm docs:checkpasses:162 translated pages match their English outline and code.test.skip(title, fn)throughregistrar('test.skip()', true): done (registry.ts:674), and the newregistry.test.tscase covers it. Options and mode come out the same as on the oldregisterTestpath ({ skip: true }, modeskip), so only the serial-group message changes. Thetest.skipThrows table and the serial-group row list it in en/ja/zh.- The cubic findings (types.ts JSDoc, setup row) were fixed in 93e1ace and are still correct. No new cubic findings at e9251d6.
Must fix
- None.
Nits
.changeset/test-fixme.md: users also see two message changes, and the changeset mentions neither:NO_TESTSnow saysskipped explicitlyinstead ofskipped with test.skip, andtest.skip(title, fn)in a serial group now gets thetest.skip() cannot be used inside a serial group...message. One more clause would cover both. "when you give one" could also say "a non-blank one", to match the JSDoc.
Verified
registry.test.ts+select.test.ts: 99 passed. Fulle2eunit suite: 3913 passed, 1 skipped.cli-doctor.test.tsdid not load because@e2e-dev/webwas not built locally; it passes in CI.- Mutants, each caught by a test failing: reverting
test.skip(title, fn)to the directregisterTestcall failsrejects test.skip(title, fn) in a serial group, and dropping thetrueskip flag fromregistrar('test.fixme()')fails the fixme serial test. oxlint,check:changeset-bumps,plugins:check, anddocs:checkare clean.- CI at e9251d6: every check is green or skipped (test 22/24/26, bun, install, web, ios/android deterministic, deepl).
Earlier asks are done, see the latest automated review.
|
[claude-opus-5-5] automated comment on behalf of @okwasniewski Maintainer decisions:
|
okwasniewski
left a comment
There was a problem hiding this comment.
[claude-opus-5-5] automated review on behalf of @okwasniewski
Re-checked at 4e23a85 against main 847a09e. The 11-18 merge commit (e56480e) and the lockfile restore (4e23a85) are clean: pnpm-lock.yaml at the head is byte-identical to main at the merge base (6fbcb66), and apart from the conflict resolutions the merge brings in nothing beyond main. The two asks from the earlier reviews (docs/zh, test.skip(title, fn) through registrar) are still in place. No open cubic findings.
Must fix
- Conflicts with main. GitHub is right that this is CONFLICTING. #1891 (847a09e) touched the same lines:
packages/e2e/src/collect/registry.ts,test.skipregister branch: keep yourregistrar('test.skip()', true)(...)line, but cast toTestBody. main renamed the body type in this file fromTestFntoTestBody, and thefixmemember that auto-merges still saysTestFnin its signature and cast, so change those toTestBodytoo.docs/migrate/playwright.mdx(plusdocs/ja,docs/zh), the "Map each API" rows: keep yourtest.fixmerow and main's newbeforeAll/afterAllrow ("get worker fixtures, notbrowser,app, orscreen").
I tried that resolution locally:registry.test.ts+select.test.tspass (106), andtsc --noEmitshows only the existing missing-@e2e-dev/web-build errors.
- Report fixme as its own skip cause. Per the maintainer decision in the 11-18 comment, fixme should be
skip: { cause: 'fixme', reason }in report v1, notcause: 'explicit'with afixme:prefix on the reason. The head still has the prefix approach, and the PR body still says "report-v1 does not change". Places that need it:packages/core/src/run/records.ts:40(theSkipInfounion), and thecause === 'explicit'checks at:227and:303. A fixme member counts as decided, the same as an explicit skip.packages/e2e/schema/report-v1.schema.json:438(the enum).packages/e2e/src/run/execute.ts:896and:903: the runtime skip record is hard-coded toexplicit, soRuntimeSkipneeds to carry the cause fromskipRunningTest('test.fixme', ...). Also the collection path atpackages/e2e/src/collect/select.ts:716.packages/e2e/src/collect/select.ts:502, theNO_TESTScount ("skipped explicitly"): either count fixme there or give it its own label.packages/github/src/merge.ts:62(same explicit check as records.ts).packages/e2e/src/run/last-run.ts: leavefixmeout ofUNDELIVERED_SKIPSso--last-faileddoesn't rerun fixme tests, and add a test for that.- list, junit, and HTML output: decide what they show.
[fixme]/[fixme: reason]in the list reporter can come from the cause instead of the reason string. - The skip cause table in the docs (en; ja/zh are best effort), the types JSDoc, and the changeset.
Tests: assertcause: 'fixme'for both the registered form and the runtime form inrunner-lifecycle.test.ts, and for the group-reason layering case.
Should fix
- Update the PR body ("report-v1 does not change", "Open questions") once the cause is in.
Out of scope here, as agreed: the parseModifierCall falsy-condition fix (test.skip(undefined, 'x') skips, Playwright doesn't) goes in your separate PR.
Verified
git merge-treeagainst 847a09e: conflicts inregistry.tsand the threemigrate/playwright.mdxpages, nothing else.- Lockfile blobs: e9251d6 = e56480e (the merge dropped main's 15-line lockfile change), and 4e23a85 = 6fbcb66 (restored exactly).
git diff 6fbcb66f0 4e23a853a: the same 17 files as before the merge, no drift from main.- CI at 4e23a85: every check green or skipped. That run was before 847a09e, so it doesn't test the conflict resolution.
|
Note 🤖 Claude Opus 5.5 responding on behalf of @samanyudas Both must-fixes from the re-review are in, and the branch is merged with main at
The built CLI on the testbed reports |
There was a problem hiding this comment.
0 issues found across 19 files (changes from recent commits).
Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.
View guided diff | Re-trigger cubic
okwasniewski
left a comment
There was a problem hiding this comment.
[claude-opus-5-5] automated review on behalf of @okwasniewski
Re-checked at b9b3027 against main ae36939. Both asks from the 11-18 review are done and the new commits add no regressions, but the branch conflicts with main again: #1882 (test.each/test.for) landed after your merge of 402a615.
Earlier asks
- Conflicts with #1891: resolved as asked in dada2f7 (
TestBodyeverywhere,registrar('test.skip()', true)kept,beforeAll/afterAllrow kept in en/ja/zh). fixmeas its own report-v1 skip cause: done.SkipInfo+SelfSkipCauseinrecords.ts(used bymemberRanandfailureBeforeSkip), the schema enum,RuntimeSkip.causewithexplicitfor an older copy's skip, bothexecute.tssites, theselect.tscollection path via modefixme,NO_TESTS("marked fixme"),@e2e-dev/githubmemberRan,--last-failedleaving fixme out (pinned inlast-run.test.ts), docs, JSDoc, and changesets. Keeping thefixme: <reason>text so list/junit/HTML need no change is fine.- PR body: updated.
- No open cubic or other reviewer findings.
Must fix
- Conflicts with main (#1882).
git merge-treeconflicts in 3 files:packages/e2e/src/collect/registry.ts: main splitregistrarintoregisterOne(api, skip, title, given, fn, namedBy?)plus a thinregistrar, andeachRegistrarcallsregisterOne. Take main's shape, widenregisterOne'sskiptoboolean | 'fixme' | undefined, move yourfixmeReason()options andfixmemode logic intoregisterOne(keep passingnamedBytoregisterTest), and widenregistrar'sskiptoboolean | 'fixme'. Keep both imports (fixmeReasonand./each.ts).packages/e2e/tests/types/sdk-types.tsandpackages/e2e/tests/integration/runner-lifecycle.test.ts: keep both sides (main's each/for cases and your fixme cases).
I did that resolution locally:tsc --noEmitis clean (with@e2e-dev/webbuilt), and the tests below pass on it.
Composes with #1882 / #1891 (checked on the merged tree with a scratch integration test):
test.fixme(title, fn)insidedescribe: skipped,{ cause: 'fixme', reason: 'fixme' }; siblings run.test.fixme(row === 'b', 'only b')in atest.eachbody: only row b skipped withfixme: only b; same in atest.forbody.test.extend<{}, { db }>().fixme(title, fn)with a worker fixture: registered skipped, body never runs.test.fixme(true, ...)inbeforeAll: the group's tests are skippedhook-failedwith the "must be called inside a test body" message, exactly astest.skipdoes on main. Playwright skips the group there; that is an existing gap shared withtest.skip, not something for this PR.
Verified (b9b3027 merged with main ae36939, my resolution)
- Unit:
registry,select,last-run,runtime-skip,schema-fixtures,report-list: 267 passed. Integration:runner-lifecycle,skip-after-failure,expected-failure: 55 passed.@e2e-dev/github: 42 passed. - Mutants, each caught:
runtimeSkipCausealwaysexplicit(4 failures),fixmeadded toUNDELIVERED_SKIPS(1),select.tscause alwaysexplicit(3),SELF_SKIP_CAUSESwithoutfixme(1). oxlinton core/e2e/github src andcheck:changeset-bumpsclean; no em/en dashes in added lines.- CI at b9b3027: all 28 checks green or skipped (before #1882, so it does not cover the resolution).
|
Note 🤖 Claude Opus 5.5 responding on behalf of @samanyudas Conflicts resolved, and the branch now merges cleanly with main
Verified on the branch merged with |
There was a problem hiding this comment.
0 issues found across 6 files (changes from recent commits).
Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.
View guided diff | Re-trigger cubic
Superseded by the latest automated re-check.
okwasniewski
left a comment
There was a problem hiding this comment.
[claude-opus-5-5] automated review on behalf of @okwasniewski
Re-checked at 3a84bfc, merged locally with main 8eb3cc2 (merges cleanly; blocked is only the earlier changes-requested review). The rebase ask is done and the new commits add no regressions. Ready from my side.
Earlier asks
- Conflict with #1882: resolved as asked in 069285e.
registerOnetakesskip: boolean | 'fixme' | undefinedand ownsfixmeReason()and thefixmemode,namedBystill reachesregisterTest,registrartakesskip?: boolean | 'fixme', andsdk-types.ts/runner-lifecycle.test.tskeep both sides. - Second conflict (#1904/#1905,
execute.tsimports): resolved in 7da0c02, main'sisCiMode/withHintkept. - No open cubic findings (latest pass: 0 issues).
New commits (a215f06, 3a84bfc)
CaughtRuntimeSkipwithcause: unknownplus a module-privateRuntimeSkipis a good boundary: every reader of a caught skip has to go throughruntimeSkipCause.test.skip(title, fn)without the extra{ skip: true }behaves the same:registerOnesetsskip: truewhenskip === true.- The migrate row is accurate: e2e rejects
skip(title, fn)andfixme(title, fn)inside a serial group, while Playwright 1.65.1 accepts both.
Nits
test.fixme(condition, reason)goes through the sameparseModifierCallastest.skip, so the non-boolean condition bug in #1966 applies to it too. Leave it to #1964, but whichever of the two lands second should coverfixmein its tests.
Verified (3a84bfc merged with main 8eb3cc2)
- Built core, e2e, web, and github. Unit tests
registry,select,last-run,runtime-skip,schema-fixtures, andreport-list: 270 passed. Integration testsrunner-lifecycle,skip-after-failure, andexpected-failure: 55 passed.@e2e-dev/github: 42 passed.tsc --noEmiton e2e is clean. - Mutant: dropping
truefromregistrar('test.skip()', true)fails 7 tests inregistryandselect. The earlier mutants (cause alwaysexplicit,UNDELIVERED_SKIPS,SELF_SKIP_CAUSES) are still covered by the unchanged tests. oxlinton core/run, e2e, and github src is clean.check:changeset-bumpsis clean (both changesets are patch). No em or en dashes in added lines.- CI at 3a84bfc: all 30 checks are green or skipped.
michal-e2e
left a comment
There was a problem hiding this comment.
Note
Drafted with AI (T3 Code and Claude Code; Claude Opus 5.5, with GPT-6.2 Astra, GPT-6.2 Sol and Claude Fable 5.2 as second readers), checked and posted by me.
Hi @samanyudas! I'm one of the new maintainers here. Thanks for the careful work across five rounds; the description made every behavior easy to check.
Reviewed at 3a84bfc71 (merge base 0e9d58ec9, main).
test.fixme works as described at this commit, through the built CLI, for every form I ran (table below). Two small text fixes before it merges, one in a changeset and one in the migration guide; the exact new text for each is below.
Must fix
-
Your changeset,
.changeset/github-fixme-cause.md:5- What to change: the release note, which says "After a rerun, the pull request comment counts a serial test that calls
test.fixme()in its body as executed." - Why: the code is right, but the comment never shows an executed count, so users would look for a change that is not there. The fix in
merge.ts:62changes onlysummary.executedin the merged report.reporter.ts:184passes that report only torenderMarkdownReport, which never readsrun.summary: it counts each result's status itself. The comment and the job summary are the same before and after. - Change line 5 to:
After a rerun, the merged report counts a serial test that calls `test.fixme()` in its body as executed, as it does for `test.skip()`. The pull request comment does not change.
- What to change: the release note, which says "After a rerun, the pull request comment counts a serial test that calls
-
The migration guide,
docs/migrate/playwright.mdx:298- What to change: the row of Playwright APIs e2e does not have yet. It needs Playwright's
test.fixme(title, details, body)form. - Why: your PR description says this form is "still listed under doesn't have yet". It is not: this PR replaced
test.fixme()in that row withtest.describe.fixme(), and the row at line 176 callstest.fixme(title, fn)"the same". A user who portstest.fixme('exports a PDF', { tag: '@slow' }, async () => {})gets aCOLLECTION_ERRORthat stops the run, and the guide never warned them. I ran that call at this commit with an options object as the second argument. - Change line 298 to:
The ja and zh copies of this row can follow.
| `test.setTimeout()`, `test.slow()`, `test.describe.only()`, `test.describe.fixme()`, `test.fixme(title, details, body)`, `test.fail()` on a describe | `{ timeout }` or `{ skip: 'fixme' }` on the test or group, with any `tags` from the details beside it, reported with skip cause `explicit`, not `fixme`; `test.only` and `test.fail()` on each test |
- What to change: the row of Playwright APIs e2e does not have yet. It needs Playwright's
Verified
-
One scratch test file in
apps/testbed, run through the built CLI, one run per build,report.jsonread per test. The merge base ran the same file withtest.fixme(replaced bytest.skip(, sincetest.fixmedoes not exist there:Call merge base, as test.skipthis PR test.fixme('t', fn)explicit,skippedfixme,fixme; body never runstest.fixme(true, 'crashes on Android')explicit,crashes on Androidfixme,fixme: crashes on Androidtest.fixme(),test.fixme(' ')explicit,skippedfixme,fixmetest.fixme('waiting on the API')explicit,waiting on the APIfixme,fixme: waiting on the APItest.fixme(false, 'off')passed passed test.fixme(true, ...)in abeforeEachexplicitfixme,fixme: from beforeEachexpect.softfailure, thentest.fixme(true, ...)failed, skip explicitkept beside itfailed, skip fixmekept beside itSerial member calling test.fixme(true, ...)member explicit, next member runs,executed12member fixme, next member runs,executed12{ skip: 'fixme' }option, plaintest.skip(true, 'not here')explicitexplicit, unchanged -
The head's
report.jsonvalidates against the PR'sreport-v1.schema.json. -
Error paths at this commit:
test.fixme(title, fn)in a serial group andtest.fixme(true, ...)at module level both stop collection with the messages in the description; a file with only a registered fixme test ends inNO_TESTSnaming1 marked fixme. The twotest.skipmessages change as described: on the merge base a serial-grouptest.skip(title, fn)reportstest option "skip" cannot be overridden inside a serial groupandNO_TESTSsaysskipped with test.skip. -
The PR's test files at this commit: 314 of 314 pass in
packages/e2e(registry, select, last-run, runtime-skip, schema-fixtures, report-list, runner-lifecycle) and 42 of 42 inpackages/github. Ten mutants on the new code (the fixme reason, its blank case, the cause at registration and at runtime, the serial-group check, the setup-test check, the collection hint,NO_TESTS,--last-failed, and the GitHub merge) are each caught by a test. -
This commit merges with current main (
309f69073) without conflicts (git merge-tree). -
pnpm check,pnpm test, the web benchmark and both mobile suites: taken from CI at this commit, not run by me.
For the maintainer
test.fixmeinherits #1966, as the earlier review here noted. Run at this commit:test.fixme(undefined, 'CI only')skips,test.fixme('1', 'ticket 42')reportsfixme: 1, and an unawaited Promise condition skips. #1964 fixes the shared parser; whichever lands second movesfixmeto itsparseModifierCall('test.fixme()', args)call and adds a baretest.fixme()case, so the fix does not ship withoutfixme.report-1gains thefixmeskip cause with no version change, asfailure-limitandtime-limitdid. A consumer validating against an older copy of the schema rejects the new value, and an older@e2e-dev/githubbeside a newere2eundercountsexecutedfor such a member.- Follow-up, not for this PR:
test.describe.fixme. Playwright has it; here a group uses{ skip: 'fixme' }today, reported with causeexplicit, as the guide says. It is not in #1855's list, and it needs the group shape #1925 is settling fortest.describe.fail(a shortcut, a group option, or both) plus a groupfixmecause that reaches each test. A separate task in #1855, after #1925 lands, would cover it.
packages/core/src/types.ts, packages/e2e/schema/ and packages/e2e/tests/types/ are on the public contract list, so the findings are mine and the approval is @okwasniewski's.
|
Note 🤖 Claude Opus 5.5 responding on behalf of @samanyudas @michal-e2e I made both fixes in
I also fixed the PR description's sentence about that row, and the line that said the github change affects the "merge summary".
|
…n the executed docs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…istrations Playwright accepts test.fixme(title, fn) and test.skip(title, fn) inside a serial describe, and e2e rejects them, so the "the same" cell names it. Type a caught runtime skip's cause as unknown, so every reader goes through runtimeSkipCause, and keep RuntimeSkip module-private. State the github changeset as the symptom, and name test.fixme in the skip JSDoc. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ithub changeset The PR comment never shows the executed count, so the changeset names the merged report instead. The Playwright guide lists the details form under the APIs e2e does not have yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sing Playwright's test.skip(callback, description) and test.fixme(callback, description) fail collection in e2e with COLLECTION_ERROR. The guide now lists them, with the conditional form inside the body or platforms on the test as the workaround, in en, ja, and zh. The ja test reference says 直列実行 for serial groups, like the rest of that page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The valid fixture's runtime skip, on the result and its attempt, now has cause fixme. The invalid fixture's skip that names a filter now has cause fixme, and a test checks that the schema rejects exactly that pair: the rule that only a filtered skip names a filter fails at that cause, and deleting the filter clears it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A test that raises its timeout from 300 ms to 10 s, waits 900 ms, and then calls test.fixme() is reported skipped with cause fixme, on the result and its attempt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36b7430 to
feabaa0
Compare
|
Note 🤖 Drafted by Claude Opus 5.5. Reviewed by @samanyudas and posted on their behalf. @michal-e2e @KrzysztofMoch Both asks are done. Head is
Also in this push: I left the report-1 enum and the
|
michal-e2e
left a comment
There was a problem hiding this comment.
Reviewed at feabaa0d0 (merge base 1b007d4d7, main at the time of this review).
Thanks @samanyudas, both asks from my last comment and @KrzysztofMoch's are done, and I checked each one on this commit.
Must fix: none.
Verified (built locally at feabaa0d0)
- Fixtures (
ff13784fd): both report-1 fixtures now carryfixme. The new test pins the exact rule the invalid row breaks. With main's fixtures put back, it and the two tests next to it fail on their assertions. If the schema is changed to let afixmeskip name a filter, the new test fails. test.setTimeout()withtest.fixme()(feabaa0d0): the new test passes, and it fails on its own when thetest.setTimeout()call inregistry.tsis made a no-op. Through the built CLI on the testbed, one run each:- A test that raises its timeout from 1 s and calls
test.fixmeat 1.5 s reportsskip.cause: "fixme". The same test without the raise reportsTEST_TIMEOUT. - In a serial group, the member after it still runs and passes.
- A
test.eachrow that callstest.fixme(n === 2, ...)reportsfixmefor that row only. - The standalone path (MCP
open_session {test}) reports "skipped itself after 869ms" with reasonfixme: after the original deadline.
- A test that raises its timeout from 1 s and calls
- The PR's tests, plus
test-set-timeout,mcp-test-runandskill, pass: 343 of 343 inpackages/e2e. The standalone suites (mcp-test-runand the sixopen-host-*) pass 73 of 73.packages/githubpasses 42 of 42, and the HTML reporter's fixture tests pass 22 of 22. - The new migration row is right.
test.fixme(() => true, 'callback form')at file level fails collection withCOLLECTION_ERRORand points attest.fixme(title, fn). - Mutation testing: 19 places this PR adds or changes a branch or a check, 21 mutants, 19 killed by a failing assertion, none survived.
- Two mutants let
test.fixme(title, fn)andtest.skip(title, fn)through the new serial-group check. They failed on the tests'toThrowmessage check: a serial group still refuses them, withtest option "skip" cannot be overridden inside a serial group; it belongs to the unit. They are not counted as kills.
- Two mutants let
- Full local run at
feabaa0d0. Every failure was run again on main1b007d4d7, built beside it on the same machine:pnpm checkpasses.- Every package's tests pass:
e2e5,349 (13 skipped),@e2e-dev/web867 (1 skipped),@e2e-dev/mobile563, and the rest. - Web benchmark: the deterministic suite passes 95 of 95. The agentic suite, replayed with
--strict-cacheand no model key, passes 26 of 34. Main fails the same 8 with the same error codes, all needing a model. - Testbed: 594 of 595.
speed.e2e.tsmissed its 100 ms per-tap budget at 104.9 ms under heavy machine load, then passed 3 of 3 runs alone. - Mobile benchmark on Android (
e2e_api35emulator): 58 of 60 (1 skipped). Of the two permission-prompt failures, one fails the same way on main, and both main and this branch pass the other when it runs alone. - Mobile benchmark on iOS (an iPhone 17e simulator): 56 of 60 (1 skipped) after one rerun of failures, as CI does. The three keyboard-dismissal tests and the web view coupon test fail the same way on main on this simulator.
- CI at this commit is green: 25 checks pass.
web agent(a fork has no model key) and the mobile app cache were skipped.
For the maintainer
test.fixme(true, ...)in anafterEachhook fails the test withERROR: [object Object].test.skipdoes the same on main1b007d4d7, and #1914 is the open fix for that path. Whichever of the two lands second should covertest.fixmethere too.- Still open from before: #1964's parser change should cover
test.fixme. Thereport-1enum and the@e2e-dev/githubpeer range from KrzysztofMoch's note need a decision.
packages/core/src/types.ts, packages/e2e/schema/ and packages/e2e/tests/types/ are on the public contract list, so the findings are mine and the approval is @okwasniewski's.
e2e-inc#1887 added test.fixme on the same skip signal, so the late refusal now names the call from the skip's cause. The changeset and the Throws rows say what a repeated skip does: it records no error, and the rest of that hook or teardown does not run.
Adds
test.fixme, Playwright's marker for a test that is known broken, so a ported suite keeps those tests visible as skipped instead of deleting them or rewriting each one astest.skip.Reports carry it as its own skip cause,
fixme, so a consumer can count known-broken tests apart from tests skipped on purpose.What and why
test.fixmetakes exactly the shapestest.skiptakes:(title, fn)at registration, and(),(reason),(condition, reason)inside a body orbeforeEach.test.fixme(false)does nothing.fixme, besideexplicit(packages/e2e/schema/report-v1.schema.json,SkipInfoinpackages/core/src/run/records.ts). The reason text isfixme, orfixme: <reason>for a reason that is not blank, so the list, junit, markdown, and HTML output read[fixme: crashes on Android]with no reporter change.fixme, which selection turns into the cause (packages/e2e/src/collect/select.ts), and the runtime forms throw aRuntimeSkipcarrying the cause fromRUNTIME_SKIP_APIS(packages/e2e/src/internal/skip.ts). ARuntimeSkipfrom an older copy of e2e, which has no cause, reportsexplicit.explicitas a skip the test gave itself now treatsfixmethe same way, through aSelfSkipCausetype: serial member accounting and Skipped After Failure in core, and the merged report'sexecutedcount in@e2e-dev/github(the pull request comment does not show it).--last-failedleaves fixme tests out, as it does explicit ones.NO_TESTScounts them asmarked fixme.{ skip: 'fixme' }option, on a test or a group, stays causeexplicit. Onlytest.fixmesets the cause. The Playwright guide says so in thetest.describe.fixme()row, and itstest.fixme(title, fn)row says a serial group takesskipon the group instead, where Playwright accepts the registration.skipRunningTest, which now takes the API name, so a call outside a body or in a setup test namestest.fixme(), nottest.skip(). Thetest.skipmessages are unchanged and now pinned inrunner-lifecycle.test.ts.registrarandregisterOne(packages/e2e/src/collect/registry.ts), and so doestest.skip(title, fn)now. In a serial group, each fails withtest.fixme() cannot be used inside a serial group, ...ortest.skip() cannot be used inside a serial group, ..., asskipIfandrunIfdo. Before,test.skipgave the generictest option "skip" cannot be overridden inside a serial group.NO_TESTSused to sayskipped with test.skipfor any explicit skip, includingskipIfand theskipoption. It now saysskipped explicitly(packages/e2e/src/collect/select.ts).docs/reference/test.mdx, the Playwright guide (moved from "doesn't have yet" to "Map each API"), thedocs/jaanddocs/zhcopies of both, andskills/e2e/references/writing-tests.mdwith its plugin copy. The docs have no table of skip causes, so thefixmecause is documented in thetest.fixmesection. Types are pinned inpackages/e2e/tests/types/sdk-types.ts, including rejected forms such astest.fixme(title, options, fn).Open questions
@e2e-dev/githubinstalled beside thise2ecounts a serial member that marks itself fixme as not executed, as it would for any new cause. I left the peer range alone.describe('g', { skip: 'tracked in #42' }, () => test.fixme('x', fn))reports causefixmeand reasonfixme. This is the existing layering inselect.ts.test.describe.fixme(use{ skip: 'fixme' }on the group) and Playwright'stest.fixme(title, details, body)form, which stops collection with aCOLLECTION_ERRORhere. TheparseModifierCallfalsy-condition fix goes in a separate PR, as agreed.Issue
Part of #1855 (Test runner row,
test.fixme('not yet', fn)).Verified
Ran it locally: yes
test.skip, a{ skip: 'fixme' }option, and a passing test:report.jsonfor that run:test.fixmein atest.eachrow body (feat(test): add test.each and test.for #1882), on the branch merged with main0e9d58ec:0e9d58ec):pnpm checkpasses, includingdocs translations: 180 of 180 translated pages match their English outline and code. Thee2eunit suite has 4161 passed, 2 skipped, and 2 failed: the twosecret-ledger"in about its own size" timing tests, at a load average of 12, which pass 91/91 run alone.runner-lifecycle,skip-after-failure, andexpected-failurepass (55/55), and so do@e2e-dev/github(42/42) and@e2e-dev/html-reporter(22/22).759d1fc2.🤖 Generated with Claude Code