Skip to content

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

Merged
merged 5 commits into from
May 14, 2025

Conversation

cahirodoherty-learningpool
Copy link
Contributor

Fixes #134

Fix

  • Correcting tests to behave appropriately on courses with multiple drawer items

Copy link

@Copilot Copilot AI left a 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

@cahirodoherty-learningpool cahirodoherty-learningpool merged commit 835830e into master May 14, 2025
@cahirodoherty-learningpool cahirodoherty-learningpool deleted the issue/134 branch May 14, 2025 11:34
@github-project-automation github-project-automation bot moved this from Needs Reviewing to Recently Released in adapt_framework: The TODO Board May 14, 2025
github-actions bot pushed a commit that referenced this pull request May 14, 2025
## [5.7.1](v5.7.0...v5.7.1) (2025-05-14)

### Fix

* Correcting tests to behave appropriately on courses with multiple drawer items (issue/134) (#135) ([835830e](835830e)), closes [#135](#135)
Copy link

🎉 This PR is included in version 5.7.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Recently Released
Development

Successfully merging this pull request may close these issues.

Resources tests do not handle multiple extensions/drawer items
4 participants