From 78f6df4d065dd3d68996bad286e65a2ae500b22b Mon Sep 17 00:00:00 2001 From: Noelia Date: Mon, 25 Apr 2022 14:20:49 +0200 Subject: [PATCH] feat(uiTest): Data changes to fit new display name req. --- .../suite_statusLogin/shared/steps/steps.py | 5 ++--- .../tst_statusLoginPassword/test.feature | 20 +++++++++---------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/test/ui-test/testSuites/suite_statusLogin/shared/steps/steps.py b/test/ui-test/testSuites/suite_statusLogin/shared/steps/steps.py index 47bd013dcf..6387b5edfa 100644 --- a/test/ui-test/testSuites/suite_statusLogin/shared/steps/steps.py +++ b/test/ui-test/testSuites/suite_statusLogin/shared/steps/steps.py @@ -16,8 +16,8 @@ from data.StatusAccount import StatusAccount from processes.StatusLoginProcess import StatusLoginProcess -@Given("A Status Desktop |any| and |word| with |word| as a preference language") -def step(context,account,password,languageType): +@Given("A Status Desktop |any| and |word|") +def step(context,account,password): # Create new data domain: accountObj = StatusAccount(account, password) @@ -28,7 +28,6 @@ def step(context,account,password,languageType): # Set needed context properties: context.userData['process'] = process context.userData['account'] = accountObj - context.userData['languageType'] = languageType # Verify process can be executed: test.verify(process.can_execute_process(), "Not possible to start login process. Check if expected Login Screen is available.") diff --git a/test/ui-test/testSuites/suite_statusLogin/tst_statusLoginPassword/test.feature b/test/ui-test/testSuites/suite_statusLogin/tst_statusLoginPassword/test.feature index 80f81c096c..e3afcde41e 100644 --- a/test/ui-test/testSuites/suite_statusLogin/tst_statusLoginPassword/test.feature +++ b/test/ui-test/testSuites/suite_statusLogin/tst_statusLoginPassword/test.feature @@ -17,23 +17,23 @@ Feature: Status Desktop login Scenario Outline: User tries to login with a valid password - Given A Status Desktop and with as a preference language + Given A Status Desktop and When the user tries to login with valid credentials Then the user is able to login to Status Desktop application Examples: - | account | password | languageType | - | Athletic Prime Springtail | Test_1234 | english | - | Nervous Pesky Serpent | Test_1234 | english | - | Granular Diligent Gorilla | Test_1234 | english | + | account | password | + | Athletic_Prime | Test_1234 | + | Nervous_Pesky | Test_1234 | + | Granular_Diligent| Test_1234 | Scenario Outline: User tries to login with an invalid password - Given A Status Desktop and with as a preference language + Given A Status Desktop and When the user tries to login with invalid credentials Then the user is NOT able to login to Status Desktop application Examples: - | account | password | languageType | - | Athletic Prime Springtail | Invalid34 | english | - | Granular Diligent Gorilla | Testpwd | english | - | Nervous Pesky Serpent | WrongPSW | english | + | account | password | + | Athletic_Prime | Invalid34 | + | Granular_Diligent | Testpwd | + | Nervous_Pesky | WrongPSW |