-
Notifications
You must be signed in to change notification settings - Fork 29
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
BoxMenu tests are giving a false positive for menu's on the course #202
Comments
These settings are for multiple menu courses. It is for the user to apply those properties in order to choose which menu should be used at the course or contentObject level, similar to There is otherwise no way to determine which menu is being used in the course, except only that a single menu will usually be included in the compilation process, this then becomes the default menu of the course for all contentObject menus (course, submenus etc). I'm assuming that you have multiple menus in a single project folder but only use one menu per course? The |
Thanks for the input @oliverfoster |
Another menu alongside or instead of a boxMenu? Is it a multimenu course with boxMenu or a single menu course without boxMenu? |
A single menu course. That menu is a custom menu, not boxMenu |
The boxMenu tests should not be running, why are they running? |
I think the current test.js setup is such that all tests run, regardless of which plugins are included in the course. Or am I mistaken there? |
Considering that the tests rely on the course data to perform, it probably should only run the tests from the plugins included in that course.
We should fix this. |
Issue resolved by adaptlearning/adapt_framework#3595 |
Subject of the issue/enhancement/features
https://github.com/adaptlearning/adapt-contrib-boxMenu/blob/master/test/e2e/adapt-contrib-boxMenu.cy.js#L6
This building of the boxMenus array makes the incorrect assumption that all courses and menus are of the BoxMenu type. This has worked for the default course for testing but proves an obstacle to tests that run on content that is built with a custom menu.
The real issue here is the failure of the first array setting as Core/Framework does not seem to apply this setting as intended
https://github.com/adaptlearning/adapt-contrib-boxMenu/blob/master/test/e2e/adapt-contrib-boxMenu.cy.js#L4
I propose we remove the catchall case that currently breaks custom menu testing and also fix the
_component
attribute setting in Core/Framework so that boxMenu tests can be runThe text was updated successfully, but these errors were encountered: