-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unittest for cancel button on authentication window
Co-authored-by: TillB <[email protected]> Co-authored-by: rgwohlbold <[email protected]>
- Loading branch information
1 parent
a8ea4df
commit 68c037c
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...lientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthCode.st
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
testing | ||
testPressCancelOnAuthCode | ||
|
||
| button nextButton | | ||
nextButton := (self subject findByClass: TCUButton) findByCriteria: [:textMorph | textMorph text asText = 'Next' ]. | ||
self subject currentWindow | ||
showPhoneNumberStep; | ||
showAuthCodeStep. | ||
button := (self subject findByClass: TCUButton) findByCriteria: [:textMorph | textMorph text asText = 'Cancel' ]. | ||
button click. | ||
self assert: nextButton visible |
12 changes: 12 additions & 0 deletions
12
...tTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthPassword.st
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
testing | ||
testPressCancelOnAuthPassword | ||
|
||
| button nextButton | | ||
nextButton := (self subject findByClass: TCUButton) findByCriteria: [:textMorph | textMorph text asText = 'Next' ]. | ||
self subject currentWindow | ||
showPhoneNumberStep; | ||
showAuthCodeStep; | ||
showAuthPasswordStep. | ||
button := (self subject findByClass: TCUButton) findByCriteria: [:textMorph | textMorph text asText = 'Cancel' ]. | ||
button click. | ||
self assert: nextButton visible |
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