Skip to content

feat(test): add test.fixme - #1887

Merged
okwasniewski merged 16 commits into
e2e-inc:mainfrom
samanyudas:feat/test-fixme
Nov 20, 2026
Merged

okwasniewski merged 16 commits into
e2e-inc:mainfrom
samanyudas:feat/test-fixme

Conversation

@samanyudas

@samanyudas samanyudas commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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 as test.skip.
Reports carry it as its own skip cause, fixme, so a consumer can count known-broken tests apart from tests skipped on purpose.

test.fixme('exports a PDF', async ({ app }) => {});            // registered skipped, body never runs
test('switches orgs', async ({ platform }) => {
  test.fixme(platform === 'android', 'crashes on Android');   // skips the running test
});

What and why

  • test.fixme takes exactly the shapes test.skip takes: (title, fn) at registration, and (), (reason), (condition, reason) inside a body or beforeEach. test.fixme(false) does nothing.
  • report-v1 gets a new skip cause, fixme, beside explicit (packages/e2e/schema/report-v1.schema.json, SkipInfo in packages/core/src/run/records.ts). The reason text is fixme, or fixme: <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.
  • Both producers set the cause: a registered fixme test gets the registration mode fixme, which selection turns into the cause (packages/e2e/src/collect/select.ts), and the runtime forms throw a RuntimeSkip carrying the cause from RUNTIME_SKIP_APIS (packages/e2e/src/internal/skip.ts). A RuntimeSkip from an older copy of e2e, which has no cause, reports explicit.
  • Every consumer that treated explicit as a skip the test gave itself now treats fixme the same way, through a SelfSkipCause type: serial member accounting and Skipped After Failure in core, and the merged report's executed count in @e2e-dev/github (the pull request comment does not show it). --last-failed leaves fixme tests out, as it does explicit ones. NO_TESTS counts them as marked fixme.
  • A { skip: 'fixme' } option, on a test or a group, stays cause explicit. Only test.fixme sets the cause. The Playwright guide says so in the test.describe.fixme() row, and its test.fixme(title, fn) row says a serial group takes skip on the group instead, where Playwright accepts the registration.
  • The runtime forms reuse skipRunningTest, which now takes the API name, so a call outside a body or in a setup test names test.fixme(), not test.skip(). The test.skip messages are unchanged and now pinned in runner-lifecycle.test.ts.
  • The registration form goes through the shared registrar and registerOne (packages/e2e/src/collect/registry.ts), and so does test.skip(title, fn) now. In a serial group, each fails with test.fixme() cannot be used inside a serial group, ... or test.skip() cannot be used inside a serial group, ..., as skipIf and runIf do. Before, test.skip gave the generic test option "skip" cannot be overridden inside a serial group.
  • NO_TESTS used to say skipped with test.skip for any explicit skip, including skipIf and the skip option. It now says skipped explicitly (packages/e2e/src/collect/select.ts).
  • Docs: docs/reference/test.mdx, the Playwright guide (moved from "doesn't have yet" to "Map each API"), the docs/ja and docs/zh copies of both, and skills/e2e/references/writing-tests.md with its plugin copy. The docs have no table of skip causes, so the fixme cause is documented in the test.fixme section. Types are pinned in packages/e2e/tests/types/sdk-types.ts, including rejected forms such as test.fixme(title, options, fn).

Open questions

  • An older @e2e-dev/github installed beside this e2e counts a serial member that marks itself fixme as not executed, as it would for any new cause. I left the peer range alone.
  • A test's own reason wins over its group's: describe('g', { skip: 'tracked in #42' }, () => test.fixme('x', fn)) reports cause fixme and reason fixme. This is the existing layering in select.ts.
  • Out of scope, and listed in the Playwright guide's "doesn't have yet" row: test.describe.fixme (use { skip: 'fixme' } on the group) and Playwright's test.fixme(title, details, body) form, which stops collection with a COLLECTION_ERROR here. The parseModifierCall falsy-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

  • testbed, built CLI, a scratch file with a registered fixme, a runtime fixme with a reason, a plain test.skip, a { skip: 'fixme' } option, and a passing test:
   ↓ |web| tests-scratch/fixme-cause.e2e.ts > registered fixme [fixme]
   ↓ |web| tests-scratch/fixme-cause.e2e.ts > option fixme [fixme]
   ↓ |web| tests-scratch/fixme-cause.e2e.ts > runtime fixme with a reason [fixme: flaky on webkit]
   ↓ |web| tests-scratch/fixme-cause.e2e.ts > plain skip [not here]
   ✓ |web| tests-scratch/fixme-cause.e2e.ts > runs 8ms
      Tests  1 passed | 4 skipped (5)

report.json for that run:

["registered fixme"] {"cause":"fixme","reason":"fixme"}
["runtime fixme with a reason"] {"cause":"fixme","reason":"fixme: flaky on webkit"}
["plain skip"] {"cause":"explicit","reason":"not here"}
["option fixme"] {"cause":"explicit","reason":"fixme"}
["runs"] undefined
  • The error paths, same CLI:
tests-scratch/fixme-verify.e2e.ts: test.fixme() cannot be used inside a serial group, which skips as one unit; set skip on the serial describe instead
tests-scratch/skip-serial.e2e.ts: test.skip() cannot be used inside a serial group, which skips as one unit; set skip on the serial describe instead
tests-scratch/fixme-verify.e2e.ts: test.fixme(condition, reason) skips the running test and must be called inside a test body; to mark a test fixme at collection, register it with test.fixme(title, fn)
9 tests were collected but none is runnable: 8 file not selected by a positional argument, 1 marked fixme; pass --pass-with-no-tests to allow this
   ✓ |web| tests-scratch/fixme-each.e2e.ts > row a 766ms
   ↓ |web| tests-scratch/fixme-each.e2e.ts > row b [fixme: only b]
["row b"] skipped {"cause":"fixme","reason":"fixme: only b"}
  • On the branch merged with main (0e9d58ec): pnpm check passes, including docs translations: 180 of 180 translated pages match their English outline and code. The e2e unit suite has 4161 passed, 2 skipped, and 2 failed: the two secret-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, and expected-failure pass (55/55), and so do @e2e-dev/github (42/42) and @e2e-dev/html-reporter (22/22).
  • The default testbed suite passes (593 passed, 3 skipped) on the branch merged with main 759d1fc2.
  • Reviewed with sol-loop: 7 rounds with gpt-6.1-sol. Sol verdict: approved

🤖 Generated with Claude Code

@github-actions github-actions Bot added the size:L Up to 499 changed lines, not counting tests, fixtures, translated docs, or the lockfile label Nov 17, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread packages/core/src/types.ts Resolved
Comment thread docs/reference/test.mdx Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@samanyudas

Copy link
Copy Markdown
Contributor Author

Note

🤖 Claude Opus 5.5 responding on behalf of @samanyudas

This is ready for review at 93e1ace. All 27 checks pass, and both cubic threads are fixed and resolved.

Three calls are yours, listed under "Open questions" in the description:

  • Fixme is marked in the skip reason (fixme, fixme: <reason>) with cause: 'explicit'. A cause: 'fixme' would be a report-v1 change.
  • A test's own reason replaces its group's, so a test.fixme inside describe(..., { skip: 'tracked in #42' }) reports [fixme].
  • test.skip(title, fn) in a serial group still gives the generic option message, while test.fixme, skipIf, and runIf name themselves. Merging the two serial rules is a refactor of feat(test): add test.skipIf and test.runIf #1870's code, so it is not in this PR.

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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/zh is missing. The Chinese docs landed on main (#1886) after this branch was cut, and once main is merged in, check-docs-translations fails:
    docs/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)
    
    Merge main, then mirror the docs/ja changes into docs/zh/reference/test.mdx (the table row, the #### test.fixme section, the serial-group row, and the Types block). Also update docs/zh/migrate/playwright.mdx. The checker doesn't catch it, but line 165 (the "same" row) and line 279 (which still lists test.fixme() as missing and shows { skip: 'reason' }) are now out of date.

Should fix

  • packages/e2e/src/collect/registry.ts:674: the registration form of test.skip(title, fn) still calls registerTest directly, while test.fixme(title, fn) goes through registrar(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 of validateTestOptions, 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 in registry.test.ts.

Playwright parity (checked against playwright/lib/common/index.js _modifier)

  • (title, fn), and (), (reason), (condition, reason) in a body or beforeEach: match, including the skipped status and the reason as the description.
  • Not covered, all documented as gaps or consistent with test.skip on main: (title, details, fn); a describe- or file-scope test.fixme(...) or test.fixme(fn, reason), which Playwright applies to the whole group and e2e makes a COLLECTION_ERROR, the same as skip; 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 as skip.

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 --noEmit and 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.

@samanyudas

Copy link
Copy Markdown
Contributor Author

Note

🤖 Claude Opus 5.5 responding on behalf of @samanyudas

Both asks from the review are fixed. The branch is merged with main at fabb0c07 in 6f3b2fee.

  1. Done in 3510fb98: docs/zh/reference/test.mdx gets the members row, the #### test.fixme section, the serial-group row, and the Types block. docs/zh/migrate/playwright.mdx lines 165 and 279 now match the English and Japanese rows. pnpm check passes on the merged tree, with docs translations: 162 translated pages match their English outline and code.
  2. Done in 3510fb98: test.skip(title, fn) registers through registrar('test.skip()', true) (packages/e2e/src/collect/registry.ts:674). The new test next to the fixme one in registry.test.ts fails on the old path. The built CLI on the testbed now prints test.skip() cannot be used inside a serial group, which skips as one unit; set skip on the serial describe instead. The test.skip Throws table and the serial-group row list it in all three languages, and the open question is gone from the PR body.

e9251d6e keeps the changeset to one sentence.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.mdx has the members row, the #### test.fixme section, the serial-group rows, and the Types block. docs/zh/migrate/playwright.mdx lines 165 and 279 match the English page. pnpm docs:check passes: 162 translated pages match their English outline and code.
  • test.skip(title, fn) through registrar('test.skip()', true): done (registry.ts:674), and the new registry.test.ts case covers it. Options and mode come out the same as on the old registerTest path ({ skip: true }, mode skip), so only the serial-group message changes. The test.skip Throws 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_TESTS now says skipped explicitly instead of skipped with test.skip, and test.skip(title, fn) in a serial group now gets the test.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. Full e2e unit suite: 3913 passed, 1 skipped. cli-doctor.test.ts did not load because @e2e-dev/web was not built locally; it passes in CI.
  • Mutants, each caught by a test failing: reverting test.skip(title, fn) to the direct registerTest call fails rejects test.skip(title, fn) in a serial group, and dropping the true skip flag from registrar('test.fixme()') fails the fixme serial test.
  • oxlint, check:changeset-bumps, plugins:check, and docs:check are clean.
  • CI at e9251d6: every check is green or skipped (test 22/24/26, bun, install, web, ios/android deterministic, deepl).

@okwasniewski
okwasniewski dismissed their stale review November 18, 2026 04:21

Earlier asks are done, see the latest automated review.

@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 18, 2026
@okwasniewski

Copy link
Copy Markdown
Member

[claude-opus-5-5] automated comment on behalf of @okwasniewski

Maintainer decisions:

  • Report fixme in the report format: add a fixme skip cause to report v1 next to the existing ones, rather than only a [fixme] prefix in the reason. Check every consumer of the cause (html-reporter, the GitHub merge summary, junit, list) and add it to the docs and ja/zh.
  • The parseModifierCall bug (test.skip(undefined, 'x') skips, Playwright does not) should be fixed. Your separate PR for it is welcome.

@okwasniewski okwasniewski removed the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 18, 2026

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.skip register branch: keep your registrar('test.skip()', true)(...) line, but cast to TestBody. main renamed the body type in this file from TestFn to TestBody, and the fixme member that auto-merges still says TestFn in its signature and cast, so change those to TestBody too.
    • docs/migrate/playwright.mdx (plus docs/ja, docs/zh), the "Map each API" rows: keep your test.fixme row and main's new beforeAll/afterAll row ("get worker fixtures, not browser, app, or screen").
      I tried that resolution locally: registry.test.ts + select.test.ts pass (106), and tsc --noEmit shows 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, not cause: 'explicit' with a fixme: 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 (the SkipInfo union), and the cause === 'explicit' checks at :227 and :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:896 and :903: the runtime skip record is hard-coded to explicit, so RuntimeSkip needs to carry the cause from skipRunningTest('test.fixme', ...). Also the collection path at packages/e2e/src/collect/select.ts:716.
    • packages/e2e/src/collect/select.ts:502, the NO_TESTS count ("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: leave fixme out of UNDELIVERED_SKIPS so --last-failed doesn'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: assert cause: 'fixme' for both the registered form and the runtime form in runner-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-tree against 847a09e: conflicts in registry.ts and the three migrate/playwright.mdx pages, 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.

@samanyudas

Copy link
Copy Markdown
Contributor Author

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 402a6157.

  1. Done in dada2f77: the conflicts are resolved as you described. test.skip(title, fn) keeps registrar('test.skip()', true), and the test.skip and test.fixme casts and the fixme signature use TestBody. Each migrate/playwright.mdx page keeps the test.fixme row and main's beforeAll/afterAll row. pnpm-lock.yaml is byte-identical to main.
  2. Done in 0985b141 and e3578f26: fixme reports skip: { cause: 'fixme', reason }.
    • SkipInfo, the schema enum, and a SelfSkipCause type that memberRan and failureBeforeSkip in records.ts and memberRan in packages/github/src/merge.ts use.
    • The runtime path: RuntimeSkip carries the cause from RUNTIME_SKIP_APIS, at both execute.ts sites. A RuntimeSkip from an older copy, which has no cause, reports explicit.
    • The collection path: a registered fixme gets the registration mode fixme, which select.ts turns into the cause. A { skip: 'fixme' } option stays explicit, and the Playwright guide row says so.
    • NO_TESTS counts fixme as marked fixme.
    • UNDELIVERED_SKIPS leaves fixme out. last-run.test.ts pins that --last-failed doesn't rerun it.
    • List, junit, and HTML: the reason text stays fixme / fixme: <reason>, so [fixme: crashes on Android] reads the same in every reporter, and none of them needed a change. Tell me if you'd rather have the bare reason with the prefix drawn from the cause.
    • Docs: there is no skip-cause table in the docs, so the cause is documented in the test.fixme section of reference/test.mdx, and reference/cli.mdx names test.fixme() beside test.skip() for executed, both in en, ja, and zh. The types JSDoc and the changesets cover it too, with a separate @e2e-dev/github changeset for the merge count.
    • Tests: runner-lifecycle.test.ts asserts cause: 'fixme' for the registered, runtime, beforeEach, serial-member, and failure-outranks-skip paths. select.test.ts covers the group-reason layering and the { skip: 'fixme' } option.
  3. Done: the PR body describes the cause and drops the answered open question.

95e600c9 also gives test.fixme(title, fn) the worker fixtures test.skip(title, fn) has, pinned in sdk-types.ts.

The built CLI on the testbed reports {"cause":"fixme","reason":"fixme"} for a registered fixme and {"cause":"fixme","reason":"fixme: flaky on webkit"} for a runtime one. pnpm check, the e2e unit suite, and the testbed suite (593 passed, 3 skipped) pass.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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 (TestBody everywhere, registrar('test.skip()', true) kept, beforeAll/afterAll row kept in en/ja/zh).
  • fixme as its own report-v1 skip cause: done. SkipInfo + SelfSkipCause in records.ts (used by memberRan and failureBeforeSkip), the schema enum, RuntimeSkip.cause with explicit for an older copy's skip, both execute.ts sites, the select.ts collection path via mode fixme, NO_TESTS ("marked fixme"), @e2e-dev/github memberRan, --last-failed leaving fixme out (pinned in last-run.test.ts), docs, JSDoc, and changesets. Keeping the fixme: <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-tree conflicts in 3 files:
    • packages/e2e/src/collect/registry.ts: main split registrar into registerOne(api, skip, title, given, fn, namedBy?) plus a thin registrar, and eachRegistrar calls registerOne. Take main's shape, widen registerOne's skip to boolean | 'fixme' | undefined, move your fixmeReason() options and fixme mode logic into registerOne (keep passing namedBy to registerTest), and widen registrar's skip to boolean | 'fixme'. Keep both imports (fixmeReason and ./each.ts).
    • packages/e2e/tests/types/sdk-types.ts and packages/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 --noEmit is clean (with @e2e-dev/web built), 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) inside describe: skipped, { cause: 'fixme', reason: 'fixme' }; siblings run.
  • test.fixme(row === 'b', 'only b') in a test.each body: only row b skipped with fixme: only b; same in a test.for body.
  • test.extend<{}, { db }>().fixme(title, fn) with a worker fixture: registered skipped, body never runs.
  • test.fixme(true, ...) in beforeAll: the group's tests are skipped hook-failed with the "must be called inside a test body" message, exactly as test.skip does on main. Playwright skips the group there; that is an existing gap shared with test.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: runtimeSkipCause always explicit (4 failures), fixme added to UNDELIVERED_SKIPS (1), select.ts cause always explicit (3), SELF_SKIP_CAUSES without fixme (1).
  • oxlint on core/e2e/github src and check:changeset-bumps clean; 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).

@samanyudas

Copy link
Copy Markdown
Contributor Author

Note

🤖 Claude Opus 5.5 responding on behalf of @samanyudas

Conflicts resolved, and the branch now merges cleanly with main 0e9d58ec. Head is 3a84bfc7.

  1. Done in 069285e0: merged main with feat(test): add test.each and test.for #1882, resolved as you described. registerOne takes skip: boolean | 'fixme' | undefined and owns the fixmeReason() options and the fixme mode, and it still passes namedBy to registerTest. registrar takes skip?: boolean | 'fixme'. Both imports are kept. sdk-types.ts and runner-lifecycle.test.ts keep both sides.
  2. Done in 7da0c028: main moved again (feat: add screen.pause() #1904, feat(cli): pause at screen.pause() under --watch #1905), with a conflict in the execute.ts imports only. I kept main's isCiMode and withHint beside runtimeSkipCause.
  3. Done in a215f06e and 3a84bfc7, from a pre-review on the merged tree:
    • In the Playwright guide, the test.fixme(title, fn) row said "the same". Playwright 1.65.1 accepts that registration in describe.serial, but e2e rejects it, as it rejects test.skip(title, fn). The row now says a serial group takes skip on the group instead (en, ja, zh).
    • isRuntimeSkip now narrows to CaughtRuntimeSkip, whose cause is unknown, so a reader has to go through runtimeSkipCause. A skip from an older copy reports explicit. RuntimeSkip is module-private.
    • test.skip(title, fn) no longer passes a redundant { skip: true } to registrar.
    • The @e2e-dev/github changeset now names the symptom. The skip JSDoc in records.ts names test.fixme.

Verified on the branch merged with 0e9d58ec, with the built CLI on the testbed: test.fixme(row === 'b', 'only b') in a test.each body skips only row b, with {"cause":"fixme","reason":"fixme: only b"}. pnpm check passes. Integration (runner-lifecycle, skip-after-failure, expected-failure) passed 55/55, @e2e-dev/github 42/42, and @e2e-dev/html-reporter 22/22. The e2e unit suite had 4161 passed. The only failures were the 2 secret-ledger timing tests under load, which pass 91/91 run alone. The PR body's Verified section has the details.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
okwasniewski dismissed stale reviews from themself November 19, 2026 16:24

Superseded by the latest automated re-check.

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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. registerOne takes skip: boolean | 'fixme' | undefined and owns fixmeReason() and the fixme mode, namedBy still reaches registerTest, registrar takes skip?: boolean | 'fixme', and sdk-types.ts / runner-lifecycle.test.ts keep both sides.
  • Second conflict (#1904/#1905, execute.ts imports): resolved in 7da0c02, main's isCiMode/withHint kept.
  • No open cubic findings (latest pass: 0 issues).

New commits (a215f06, 3a84bfc)

  • CaughtRuntimeSkip with cause: unknown plus a module-private RuntimeSkip is a good boundary: every reader of a caught skip has to go through runtimeSkipCause.
  • test.skip(title, fn) without the extra { skip: true } behaves the same: registerOne sets skip: true when skip === true.
  • The migrate row is accurate: e2e rejects skip(title, fn) and fixme(title, fn) inside a serial group, while Playwright 1.65.1 accepts both.

Nits

  • test.fixme(condition, reason) goes through the same parseModifierCall as test.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 cover fixme in its tests.

Verified (3a84bfc merged with main 8eb3cc2)

  • Built core, e2e, web, and github. Unit tests registry, select, last-run, runtime-skip, schema-fixtures, and report-list: 270 passed. Integration tests runner-lifecycle, skip-after-failure, and expected-failure: 55 passed. @e2e-dev/github: 42 passed. tsc --noEmit on e2e is clean.
  • Mutant: dropping true from registrar('test.skip()', true) fails 7 tests in registry and select. The earlier mutants (cause always explicit, UNDELIVERED_SKIPS, SELF_SKIP_CAUSES) are still covered by the unchanged tests.
  • oxlint on core/run, e2e, and github src is clean. check:changeset-bumps is clean (both changesets are patch). No em or en dashes in added lines.
  • CI at 3a84bfc: all 30 checks are green or skipped.

@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 19, 2026

@michal-e2e michal-e2e left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. 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:62 changes only summary.executed in the merged report. reporter.ts:184 passes that report only to renderMarkdownReport, which never reads run.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.
      
  2. 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 with test.describe.fixme(), and the row at line 176 calls test.fixme(title, fn) "the same". A user who ports test.fixme('exports a PDF', { tag: '@slow' }, async () => {}) gets a COLLECTION_ERROR that 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:
      | `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 |
      
      The ja and zh copies of this row can follow.

Verified

  • One scratch test file in apps/testbed, run through the built CLI, one run per build, report.json read per test. The merge base ran the same file with test.fixme( replaced by test.skip(, since test.fixme does not exist there:

    Call merge base, as test.skip this PR
    test.fixme('t', fn) explicit, skipped fixme, fixme; body never runs
    test.fixme(true, 'crashes on Android') explicit, crashes on Android fixme, fixme: crashes on Android
    test.fixme(), test.fixme(' ') explicit, skipped fixme, fixme
    test.fixme('waiting on the API') explicit, waiting on the API fixme, fixme: waiting on the API
    test.fixme(false, 'off') passed passed
    test.fixme(true, ...) in a beforeEach explicit fixme, fixme: from beforeEach
    expect.soft failure, then test.fixme(true, ...) failed, skip explicit kept beside it failed, skip fixme kept beside it
    Serial member calling test.fixme(true, ...) member explicit, next member runs, executed 12 member fixme, next member runs, executed 12
    { skip: 'fixme' } option, plain test.skip(true, 'not here') explicit explicit, unchanged
  • The head's report.json validates against the PR's report-v1.schema.json.

  • Error paths at this commit: test.fixme(title, fn) in a serial group and test.fixme(true, ...) at module level both stop collection with the messages in the description; a file with only a registered fixme test ends in NO_TESTS naming 1 marked fixme. The two test.skip messages change as described: on the merge base a serial-group test.skip(title, fn) reports test option "skip" cannot be overridden inside a serial group and NO_TESTS says skipped 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 in packages/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.fixme inherits #1966, as the earlier review here noted. Run at this commit: test.fixme(undefined, 'CI only') skips, test.fixme('1', 'ticket 42') reports fixme: 1, and an unawaited Promise condition skips. #1964 fixes the shared parser; whichever lands second moves fixme to its parseModifierCall('test.fixme()', args) call and adds a bare test.fixme() case, so the fix does not ship without fixme.
  • report-1 gains the fixme skip cause with no version change, as failure-limit and time-limit did. A consumer validating against an older copy of the schema rejects the new value, and an older @e2e-dev/github beside a newer e2e undercounts executed for such a member.
  • Follow-up, not for this PR: test.describe.fixme. Playwright has it; here a group uses { skip: 'fixme' } today, reported with cause explicit, as the guide says. It is not in #1855's list, and it needs the group shape #1925 is settling for test.describe.fail (a shortcut, a group option, or both) plus a group fixme cause 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.

Comment thread .changeset/github-fixme-cause.md Resolved
Comment thread docs/migrate/playwright.mdx Resolved
@samanyudas

Copy link
Copy Markdown
Contributor Author

Note

🤖 Claude Opus 5.5 responding on behalf of @samanyudas

@michal-e2e I made both fixes in d1dc72a5, using your text.

  1. Changeset .changeset/github-fixme-cause.md: it now says the merged report changes and the pull request comment does not. I checked the code: markdown.ts never reads run.summary.executed.
  2. Migration guide, the "doesn't have yet" row: it now lists test.fixme(title, details, body), with the tags note. The ja and zh rows match. I ran test.fixme('exports a PDF', { tag: '@slow' }, async () => {}) on the built CLI. It stops collection with COLLECTION_ERROR, as you said.

I also fixed the PR description's sentence about that row, and the line that said the github change affects the "merge summary".

pnpm check passes, including docs translations: 180 of 180.

@github-actions github-actions Bot removed the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 20, 2026
samanyudas and others added 8 commits November 20, 2026 23:00
…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>
@samanyudas

Copy link
Copy Markdown
Contributor Author

Note

🤖 Drafted by Claude Opus 5.5. Reviewed by @samanyudas and posted on their behalf.

@michal-e2e @KrzysztofMoch Both asks are done. Head is feabaa0d0, rebased onto main 1b007d4d7.

  1. Rebase
    • Both APIs are kept: test.fixme now builds on feat(test): change the running test's timeout with test.setTimeout #1921's registerOne.
    • New test in feabaa0d0: test.setTimeout() raises the limit from 300 ms to 10 s, and test.fixme() runs after 900 ms. The report shows cause fixme.
    • The test fails if the test.setTimeout() call is removed.
    • Standalone suites (mcp-test-run, open-host-*) pass, 80/80.
  2. Fixtures (ff13784fd)
    • Valid fixture: the skipped result and its attempt use fixme.
    • Invalid fixture: the skip with filter: "areas" now has cause fixme.
    • The test checks that this pair breaks exactly one rule: only filtered may name a filter. Deleting filter clears the error.

Also in this push: b89962583 lists Playwright's test.skip(callback) and test.fixme(callback) forms as missing in the migration guide.

I left the report-1 enum and the @e2e-dev/github peer range unchanged for the maintainers to decide.

pnpm build, pnpm check, and all e2e tests pass. Two unrelated @e2e-dev/web tests failed once under load and pass when run alone.

@michal-e2e michal-e2e added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 20, 2026

@michal-e2e michal-e2e left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 carry fixme. 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 a fixme skip name a filter, the new test fails.
  • test.setTimeout() with test.fixme() (feabaa0d0): the new test passes, and it fails on its own when the test.setTimeout() call in registry.ts is 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.fixme at 1.5 s reports skip.cause: "fixme". The same test without the raise reports TEST_TIMEOUT.
    • In a serial group, the member after it still runs and passes.
    • A test.each row that calls test.fixme(n === 2, ...) reports fixme for that row only.
    • The standalone path (MCP open_session {test}) reports "skipped itself after 869ms" with reason fixme: after the original deadline.
  • The PR's tests, plus test-set-timeout, mcp-test-run and skill, pass: 343 of 343 in packages/e2e. The standalone suites (mcp-test-run and the six open-host-*) pass 73 of 73. packages/github passes 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 with COLLECTION_ERROR and points at test.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) and test.skip(title, fn) through the new serial-group check. They failed on the tests' toThrow message check: a serial group still refuses them, with test option "skip" cannot be overridden inside a serial group; it belongs to the unit. They are not counted as kills.
  • Full local run at feabaa0d0. Every failure was run again on main 1b007d4d7, built beside it on the same machine:
    • pnpm check passes.
    • Every package's tests pass: e2e 5,349 (13 skipped), @e2e-dev/web 867 (1 skipped), @e2e-dev/mobile 563, and the rest.
    • Web benchmark: the deterministic suite passes 95 of 95. The agentic suite, replayed with --strict-cache and 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.ts missed 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_api35 emulator): 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 an afterEach hook fails the test with ERROR: [object Object]. test.skip does the same on main 1b007d4d7, and #1914 is the open fix for that path. Whichever of the two lands second should cover test.fixme there too.
  • Still open from before: #1964's parser change should cover test.fixme. The report-1 enum and the @e2e-dev/github peer 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.

@okwasniewski
okwasniewski added this pull request to the merge queue Nov 20, 2026
Merged via the queue into e2e-inc:main with commit 198d25f Nov 20, 2026
28 checks passed
kblok added a commit to hardkoded/e2e-dotnet that referenced this pull request Nov 21, 2026
Asheesh7298 added a commit to Asheesh7298/e2e that referenced this pull request Nov 22, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. size:L Up to 499 changed lines, not counting tests, fixtures, translated docs, or the lockfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants