-
Notifications
You must be signed in to change notification settings - Fork 21
Fix: Correcting tests to behave appropriately on courses with multiple drawer items (issue/134) #135
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
…e drawer items (issue/134)
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.
Pull Request Overview
This PR fixes test behavior for courses with multiple drawer items by updating test setup and adding a new helper for accessing the resources drawer.
- Update beforeEach in e2e tests to determine if multiple drawer items exist
- Invoke the new accessResourcesDrawer helper in the tests where appropriate
- Introduce the accessResourcesDrawer utility function in helpers.js
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
File | Description |
---|---|
test/e2e/pageResources.cy.js | Updates beforeEach to identify multi-drawer scenarios and calls helper |
test/e2e/menuResources.cy.js | Similar updates as pageResources, ensuring proper drawer access behavior |
test/e2e/helpers.js | Adds the accessResourcesDrawer helper function to click the correct button |
🎉 This PR is included in version 5.7.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fixes #134
Fix