Skip to content

test(pm-aggregator): MOB-00 deterministic browser acceptance harness (#9467) - #9561

Merged
dezren39 merged 1 commit into
mainfrom
queue/15992-9467-mob00-harness
Nov 13, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/15992-9467-mob00-harness

Conversation

@dezren39

@dezren39 dezren39 commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Closes the implementation half of #9467 (MOB-00) — the design gate (PR #9225) merged as 84131d4, so the harness lands now. MOB-03 (#9470) / MOB-04 (#9471) browser acceptance is unblocked on this.

What

  • pm-stack/aggregator/package.json + bun.lock: pin @playwright/test 1.64.0 exactly (matches the fleet's playwright-driver browser build, chromium v1248 — the same alignment rule as pkgs/id e2e).
  • pm-stack/aggregator/playwright.config.ts (new): boots the real aggregator in fixture mode (PM_AGG_SOURCE=fixtures) as a Playwright webServer on loopback-only ports (4797/4897), single worker, no retries, trace + video retain-on-failure (never a screenshot-only pass).
  • pm-stack/aggregator/test/browser/mobile-work-view.spec.ts (new): the single named contract test pmo_mob_03/04_mobile_queue_keyboard_and_viewport_contract. Every non-local request is aborted (isolated deterministic fixture data only, no GitHub/Project/session credentials). It asserts:
    1. queue flow at 360px — the shell's fragment renders the fixture queue item's card; no horizontal overflow at 360px or 768px;
    2. keyboard reachability — Tab from the page top reaches the queue card's title link;
    3. detail flow — the same item's /item/<id> page renders its title as the heading at 360px, no overflow;
    4. action + status announcement — a triage dismiss submitted from the keyboard (focus + Enter) is accepted by /api/actions (201) and the app presents the result back: the "Dismissed / done by you" count increments. (Comment posting is deliberately not used: its author authorization resolves through the host secret store, which would make the harness non-deterministic across machines.)
  • .github/workflows/pm-aggregator-tests.yml: new browser job in the existing workflow (still dispatch-only per pm-aggregator-tests workflow: auto triggers BLOCKED on runner strategy (dispatch-only by Drew's ruling 2026-11-05) #6126): frozen install, Playwright browser cache keyed on the pinned version + bun.lock, deterministic Chromium install, the exact acceptance command, trace/video artifact upload on failure.

Verification

  • bunx playwright test --config playwright.config.ts --grep pmo_mob_03/04 --list lists exactly the one named test.
  • cd pm-stack/aggregator && bunx playwright test --config playwright.config.ts --grep pmo_mob_03/04 — 1 passed, three consecutive runs (fresh fixture server each run).
  • bunx tsc --noEmit: 22 errors, byte-identical set to pristine current main (all pre-existing in other test files; zero in the new files).
  • bun test test/boot.test.ts test/queue-view.test.ts: same result as the pre-change baseline (one pre-existing boot hook timeout under load; queue-view tests pass).

Queue: task 15992, lane code-b. Notes on #9467.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 13, 2026 14:14
@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 6 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cf0bf794-8eb7-49ca-bc0a-d85e56dfa755
Commits

Reviewing files that changed from the base of the PR and between a0bf3c3 and 3f05355.

Files ignored due to path filters: 1

  • pm-stack/aggregator/bun.lock is excluded by !**/*.lock
Files selected for processing: 4

  • .github/workflows/pm-aggregator-tests.yml
  • pm-stack/aggregator/package.json
  • pm-stack/aggregator/playwright.config.ts
  • pm-stack/aggregator/test/browser/mobile-work-view.spec.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-13T14:14:25.498195Z
We couldn’t complete this review. Comment @codex review to try again.
3f05355 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant