Bug Fix: Student has not started level message showing when not appropriate #31704
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
There were two different bugs with the "Student has not started this level" banner
Bug 1: Contained levels
The banner would always show on contained levels because the progress for a contained level is actually on the containee level instead of the container level. For now, this hides the banner for all contained levels as it should be obvious from the state of the level if it has been started or not (either they answered the question or not).
Bug 2: Dance party levels
The banner was showing on dance party levels because its a channel backed level type but it wasn't in the list of channel backed levels we were checking.
Links
Testing story
I added a UI test for checking that the banner does not show on a contained level.
I did not add a test for dance levels as I think there would be too many cases if we had a UI test for each level type. Instead, right now there is a test for just one channel backed level type and one non-channel backed level type.
Reviewer Checklist: