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
Unit overview bugs #14910
Unit overview bugs #14910
Conversation
@@ -65,11 +66,11 @@ const ProgressDetailToggle = React.createClass({ | |||
}, | |||
|
|||
render() { | |||
const { whiteBorder, isSummaryView, hasGroups } = this.props; | |||
const { whiteBorder, isSummaryView, hasGroups, isPlc } = this.props; |
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.
That's funny... this should get coverage via the headless storybook tests.
currentStageId={2} | ||
/> | ||
); | ||
assert.equal(wrapper.state('collapsed'), true); | ||
}); | ||
|
||
it('starts uncollapsed if it is the current stage', () => { | ||
it('starts uncollapsed for teacher even if not the current stage', () => { |
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.
There's hole in your test matrix here:
Is current stage | Not current stage | |
---|---|---|
Teacher | ✓ | |
Student | ✓ | ✓ |
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.
Changes LGTM, one suggested test change, it'd be nice to investigate why Codecov reported no coverage for those few lines.
Two fixes for unit overview issues
(1) We want PLC courses to use teal instead of purple
(2) When you're a teacher, we want to make it so that all stages start uncollapsed.