-
-
Notifications
You must be signed in to change notification settings - Fork 94
Fixed breadcrumb styling and added tests #1435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Summary by CodeRabbit
Summary by CodeRabbit
WalkthroughThis set of changes primarily removes the Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this @samyak003 !
I checked it locally and it works.
As for the tests -- the idea is always make sure the bug doesn't happen again. So in this case we'd like to see tests (unit/e2e) that check for some chapter/project detail links clickability. Please look into adding it when you get a chance.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
frontend/__tests__/e2e/pages/Projects.spec.ts
(1 hunks)frontend/__tests__/unit/pages/Chapters.test.tsx
(1 hunks)frontend/__tests__/unit/pages/Projects.test.tsx
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
- GitHub Check: Run frontend unit tests
- GitHub Check: Run backend tests
- GitHub Check: Run frontend e2e tests
- GitHub Check: CodeQL (python)
- GitHub Check: CodeQL (javascript-typescript)
🔇 Additional comments (2)
frontend/__tests__/unit/pages/Chapters.test.tsx (1)
135-147
: LGTM! Good test for multi-link navigation verification.This test properly extends coverage by verifying that all "View Details" links navigate correctly, not just the first one. The test structure follows best practices with proper assertions and router verification.
frontend/__tests__/unit/pages/Projects.test.tsx (1)
145-159
: LGTM! Comprehensive test for all navigation buttons.This test enhances coverage by verifying that all "View Details" buttons navigate to their correct respective URLs. The implementation is well-structured with:
- Proper role-based element selection with
getByRole
- Verification of link existence before testing
- Index-based URL validation for each button
- Appropriate mock restoration
This complements the existing single-button test case nicely.
|
Fixes: #1413