test(GODT-3220): Add test scenarios for logining in with alias address and loging in with an alias address

-Added a test scenario for logging in with an alias address
-Added a test scenario for logging in with alias address that no longer exists

GODT-3220
This commit is contained in:
gzafirova 2024-01-18 16:56:56 +01:00 committed by Gordana Zafirova
parent cf0f59afc0
commit 6cb2d944d0
1 changed files with 9 additions and 3 deletions

View File

@ -47,12 +47,18 @@ Feature: A user can login
Then user "[user:user]" is eventually listed and connected
And user "[user:additional]" is eventually listed and connected
Scenario: Login to account with an alias address that no longer exists
Scenario: Login to account with an alias address
Given the account "[user:user]" has additional address "[user:alias]@[domain]"
When the user logs in with alias address "[user:alias]@[domain]" and password "password2"
Then user "[user:user]" is eventually listed and connected
Scenario: Login to account with an alias address that no longer exists
Given the account "[user:user]" has additional address "[user:alias]@[domain]"
And the user logs in with alias address "[user:alias]@[domain]" and password "password2"
And user "[user:user]" is eventually listed and connected
When user "[user:user]" is deleted
Then user "[user:user]" is not listed
When the account "[user:user]" no longer has additional address "[user:alias]@[domain]"
When the user logs in with username "[user:alias]@[domain]" and password "password2"
Then it fails
Then user "[user:user]" is not listed
When the user logs in with alias address "[user:alias]@[domain]" and password "password2"
Then it fails