test: add e2e test for /package-code/ route - #3122
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe pull request adds the ChangesPackage Code E2E coverage
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/e2e/package-code.spec.ts`:
- Around line 10-11: Update the version assertion in the package-code test to
scope the locator to the version selector, using the visible data-testid symbols
package-subheader or version-selector-button instead of the page-wide text
locator. Preserve the check that version 2.0.0 is visible within that scoped
selector.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 7023d22a-c955-4df7-a40c-6dcacc6a9e96
📒 Files selected for processing (2)
test/e2e/hydration.spec.tstest/e2e/package-code.spec.ts
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/e2e/package-code.spec.ts`:
- Line 15: Update the codePage locator in the package-code test to pass the CSS
ID selector directly, removing the backticks from the selector string so it
targets `#code-page-container`.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: d85b911f-0b63-43d6-888f-01404ecb9478
📒 Files selected for processing (1)
test/e2e/package-code.spec.ts
/package-code/ route/package-code/ route
🔗 Linked issue
This should hopefully catch the #3112 regression
🧭 Context
📚 Description