diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthCode.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthCode.st new file mode 100644 index 000000000..130c9e99d --- /dev/null +++ b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthCode.st @@ -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 \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthPassword.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthPassword.st new file mode 100644 index 000000000..c75ab7b44 --- /dev/null +++ b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthPassword.st @@ -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 \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json index 04d403da6..86c502869 100644 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json +++ b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json @@ -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" } }