From 8d38e24e3442152ce7552de6456e7b5c255eca0b Mon Sep 17 00:00:00 2001 From: Antony Kamp Date: Sat, 21 May 2022 14:05:07 +0200 Subject: [PATCH] Add testcase for password input Co-authored-by: TillB Co-authored-by: rgwohlbold --- .../instance/testEnteringPasswordOpensTelegram.st | 6 +++--- .../TCTUAuthenticationTests.class/methodProperties.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPasswordOpensTelegram.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPasswordOpensTelegram.st index a7cbfe66e..126ae1d6c 100644 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPasswordOpensTelegram.st +++ b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPasswordOpensTelegram.st @@ -1,14 +1,14 @@ testing testEnteringPasswordOpensTelegram - | inputField authenticationWindow | + | passwordField authenticationWindow | authenticationWindow := self subject currentWindow. authenticationWindow showPhoneNumberStep; showAuthCodeStep; showAuthPasswordStep. - inputField := (self subject findByClass: TextMorph) findByCriteria: [:textMorph | textMorph isLocked not and: textMorph visible]. - inputField sendKeys: '934505'. + passwordField := (self subject findByClass: TextMorph) findByCriteria: [:textMorph | textMorph isLocked not and: textMorph visible]. + passwordField sendKeys: '934505'. self assertReading: '934505' in: self subject. authenticationWindow logInCompleted. diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json index 86c502869..624e0822f 100644 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json +++ b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json @@ -4,7 +4,7 @@ "instance" : { "setUp" : "RS 7/17/2021 12:56", "testEnteringCodeOpensTelegram" : "aka 5/21/2022 13:02", - "testEnteringPasswordOpensTelegram" : "aka 5/21/2022 13:02", + "testEnteringPasswordOpensTelegram" : "aka 5/21/2022 14:01", "testEnteringPhoneNumberAsksForCode" : "aka 5/21/2022 13:29", "testPressCancelOnAuthCode" : "aka 5/21/2022 13:51", "testPressCancelOnAuthPassword" : "aka 5/21/2022 13:50",