-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fix: Empty resource items array was breaking drawer load and added resource e2e tests (Issue/111) #112
Conversation
Currently blocked by issue 3 of adaptlearning/adapt_framework#3472 |
Please sort out data loading. Think more about making these tests generic. i.e. all of the test should run on any course, not just on the vanilla data |
Hi Oliver, I believe I have addressed this in a new PR into this branch: #113 Can you have a look an confirm if those are the changes you think are needed please |
* Loading in config to test values * Formatting updates * Dynamically calculated item counts * Calculating item types declared by current content. Removing layout test as it will be theme-dependent * Removing position tests as these are theme-dependent * Fix: Prevent empty resourceItems error on drawer click * Added tests to run on every page as well as the menu * Splitting helpers and placing for least repetitive use * Extend resource items for the page with course-level items * Correcting array concat rather than object and fixed ordering * Working tests
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.
👀
@oliverfoster Here is the updated resources tests. I've merged them into the original PR for easier viewing |
… callback approach to 'this.' variable setting setting
Hi @oliverfoster Thanks for helping me progress the Core PR to fix drawer on location change. These tests are now passing as expected. Chalk one up for tests! Caught another (albeit minor) bug 🚀 |
No worries @cahirodoherty-learningpool |
🎉 This PR is included in version 5.4.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Addresses #111
Chore:
Fixes: