Skip to content
This repository has been archived by the owner. It is now read-only.

fix(signup): show red border only after tooltip rendered #3120

Merged
merged 1 commit into from Oct 1, 2015

Conversation

@npestana
Copy link
Member

@npestana npestana commented Sep 30, 2015

Add addClass('invalid') to invalid field only after the tooltip rendered.

Closes #1865

@vladikoff
Copy link
Contributor

@vladikoff vladikoff commented Sep 30, 2015

@npestana
Copy link
Member Author

@npestana npestana commented Sep 30, 2015

Updated the tests to wait for the tooltip to be rendered.

EDIT: Commits squashed.

@npestana npestana force-pushed the npestana:i1865-invalid-border branch from 1d3ba31 to a6a1679 Sep 30, 2015
@@ -354,7 +354,9 @@ function (chai, sinon, $, p, FormView, Template, Constants, Metrics, AuthErrors,

it('adds invalid class to the invalid element', function () {

This comment has been minimized.

@vladikoff

vladikoff Oct 1, 2015
Contributor

this needs a done callback , + done() in the timeout, you can find it in other tests

return view.render()
.then(function () {
return view.afterVisible();
})
.then(function () {
assert.isTrue(view.showValidationError.called);
self.timeout(function () {
assert.isTrue(view.$('input[type="email"]').hasClass('invalid'));
@vladikoff
Copy link
Contributor

@vladikoff vladikoff commented Oct 1, 2015

@npestana go ahead and squash these commits when you have time

Add addClass('invalid') to invalid field only after the tooltip rendered.
Update tests to wait for the tooltip to be rendered.

Closes #1865
@npestana npestana force-pushed the npestana:i1865-invalid-border branch from e49c80d to ef08d86 Oct 1, 2015
@npestana
Copy link
Member Author

@npestana npestana commented Oct 1, 2015

Commits squashed. :)

vladikoff added a commit that referenced this pull request Oct 1, 2015
fix(signup): show red border only after tooltip rendered r=vladikoff
@vladikoff vladikoff merged commit 6885723 into mozilla:master Oct 1, 2015
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
ci/circleci Your tests passed on CircleCI!
Details
coverage/coveralls Coverage decreased (-0.02%) to 98.881%
Details
@vladikoff
Copy link
Contributor

@vladikoff vladikoff commented Oct 1, 2015

Thanks again!

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

Successfully merging this pull request may close these issues.

None yet

2 participants