Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(buttons): make uib-uncheckable work as expected and documented #5451

Closed
wants to merge 1 commit into from

Conversation

c-vetter
Copy link
Contributor

@c-vetter c-vetter commented Feb 9, 2016

Closes #5412

btns.eq(0).click();
expect($scope.model).toEqual(1);

btns.eq(0).click();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this need to be clicked twice in a row?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is to assert that, with uncheckable not being set, clicking the same button twice is the same as clicking it once. Otherwise, it might just always be uncheckable irrespective of the state of uncheckable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants