-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed missing element issues by calling
update
on wrapper component
- Loading branch information
Showing
7 changed files
with
83 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,9 @@ describe('Lost password page', () => { | |
.simulate('change', { target: { value: '[email protected]' } }); | ||
lostPasswordPage.find('[data-test="submit"]').getDOMNode().click(); | ||
setTimeout(() => { | ||
expect(lostPasswordPage.find('form')).toIncludeText('Email not found'); | ||
lostPasswordPage.update(); | ||
expect(lostPasswordPage.find('[data-test="serverError"]')) | ||
.toIncludeText('Email not found'); | ||
done(); | ||
}, 100); | ||
}); | ||
|
@@ -51,11 +53,11 @@ describe('Lost password page', () => { | |
.simulate('change', { target: { value: '[email protected]' } }); | ||
lostPasswordPage.find('[data-test="submit"]').getDOMNode().click(); | ||
setTimeout(() => { | ||
expect(lostPasswordPage.find('form')) | ||
lostPasswordPage.update(); | ||
expect(lostPasswordPage.find('[data-test="successWrap"]')) | ||
.toIncludeText('Check your email to reset your password.'); | ||
done(); | ||
}, 100); | ||
done(); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters