Skip to content

test(web): derive jump-box cases from the demo repo's numbers - #36

Merged
PastaPastaPasta merged 1 commit into
masterfrom
fix/e2e-jump-number-fixture
Sep 26, 2026
Merged

PastaPastaPasta merged 1 commit into
masterfrom
fix/e2e-jump-number-fixture

Conversation

@PastaPastaPasta

Copy link
Copy Markdown
Owner

Summary

Follow-up to #32. v2-explore.spec.ts x3 hard-coded #3 as an issue-only number on forge-v2-demo. Another suite has since opened PRs #3 and #4 on that repo, so #3 now exists as both an issue and a PR, and the "straight to the issue" assertion failed.

On moutai today the repo has issues 1–3 and PRs 1–4.

Changes

  • Test x3 reads the numbers from the chain. It reads the repo's issue and PR numbers from Platform in Node, as v2-auth.spec.ts does, and checks every case that currently exists:
    • Both an issue and a PR: the chooser appears, its PR link points at the PR, and the issue link opens the issue. At least one such pair must exist; the fixture guarantees build: make the Rust workspace buildable and pin the Platform SDK #1.
    • Issue only: straight to the issue.
    • PR only: straight to the PR.
    • Neither: a far-out number shows "No issue or PR #n" and the page stays put.
  • Seed script: seed-v2-fixture.mjs gets a comment only. Issue and PR numbers are independent by design (forge-v2 §6), the build: make the Rust workspace buildable and pin the Platform SDK #1 pair is intentional, and other suites add PRs here. The script creates issues 1–3 and PRs 1–2 with fixed numbers and cannot collide with itself.

Test plan

  • E2E_DEVNET=moutai E2E_PORT=4323 pnpm exec playwright test v2-explore.spec.ts: 5/5 passed
  • Same spec with --repeat-each 3: 15/15 passed
  • pnpm typecheck && pnpm lint

🤖 Generated with Claude Code

…chain

x3 hard-coded #3 as an issue-only number; another suite has since opened PRs #3 and #4 on forge-v2-demo, so #3 is both and the spec failed. It now reads the repo's issue and PR numbers from Platform and checks each case that exists: both (the chooser, with each link), issue only, PR only, and a number with neither. The seed script notes that issue and PR numbers are independent and shared on purpose.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 23 minutes.

Check out review usage here.

View limit details

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

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

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: fb972590-960b-4462-be04-78d8dfb59789

📥 Commits

Reviewing files that changed from the base of the PR and between 00f51a0 and 85bbd07.

📒 Files selected for processing (2)
  • forge-contracts/scripts/seed-v2-fixture.mjs
  • forge-web/e2e/v2-explore.spec.ts

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

Comment @coderabbitai help to get the list of available commands.

@PastaPastaPasta
PastaPastaPasta merged commit aa1cf88 into master Sep 26, 2026
5 checks passed
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