Skip to content

Commit

Permalink
Add unittest for cancel button on authentication window
Browse files Browse the repository at this point in the history
Co-authored-by: TillB <[email protected]>
Co-authored-by: rgwohlbold <[email protected]>
  • Loading branch information
3 people committed May 21, 2022
1 parent a8ea4df commit 68c037c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
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
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
"setUp" : "RS 7/17/2021 12:56",
"testEnteringCodeOpensTelegram" : "aka 5/21/2022 13:02",
"testEnteringPasswordOpensTelegram" : "aka 5/21/2022 13:02",
"testEnteringPhoneNumberAsksForCode" : "aka 5/21/2022 13:12",
"testEnteringPhoneNumberAsksForCode" : "aka 5/21/2022 13:29",
"testPressCancelOnAuthCode" : "aka 5/21/2022 13:51",
"testPressCancelOnAuthPassword" : "aka 5/21/2022 13:50",
"testTelegramOpensAuthentication" : "RS 7/17/2021 12:55" } }

0 comments on commit 68c037c

Please sign in to comment.