Skip to content
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

Merged
merged 3 commits into from May 8, 2017
Merged

Unit overview bugs #14910

merged 3 commits into from May 8, 2017

Conversation

Bjvanminnen
Copy link
Contributor

@Bjvanminnen Bjvanminnen commented May 8, 2017

Two fixes for unit overview issues
(1) We want PLC courses to use teal instead of purple
image

(2) When you're a teacher, we want to make it so that all stages start uncollapsed.

@@ -65,11 +66,11 @@ const ProgressDetailToggle = React.createClass({
},

render() {
const { whiteBorder, isSummaryView, hasGroups } = this.props;
const { whiteBorder, isSummaryView, hasGroups, isPlc } = this.props;
Copy link
Contributor

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', () => {
Copy link
Contributor

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

Copy link
Contributor

@islemaster islemaster left a 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.

@Bjvanminnen Bjvanminnen merged commit 6703322 into staging May 8, 2017
@Bjvanminnen Bjvanminnen deleted the unitOverview branch May 8, 2017 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants