mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 13:16:53 +00:00
GODT-2181(test): Use [user:NAME] for test user name
This commit is contained in:
@ -1,36 +1,36 @@
|
||||
Feature: A user can login
|
||||
Background:
|
||||
Given there exists an account with username "user" and password "password"
|
||||
Given there exists an account with username "[user:user]" and password "password"
|
||||
And bridge starts
|
||||
|
||||
Scenario: Login to account
|
||||
When the user logs in with username "user" and password "password"
|
||||
Then user "user" is listed and connected
|
||||
When the user logs in with username "[user:user]" and password "password"
|
||||
Then user "[user:user]" is listed and connected
|
||||
|
||||
Scenario: Login to account with wrong password
|
||||
When the user logs in with username "user" and password "wrong"
|
||||
Then user "user" is not listed
|
||||
When the user logs in with username "[user:user]" and password "wrong"
|
||||
Then user "[user:user]" is not listed
|
||||
|
||||
Scenario: Login to nonexistent account
|
||||
When the user logs in with username "other" and password "unknown"
|
||||
Then user "other" is not listed
|
||||
When the user logs in with username "[user:other]" and password "unknown"
|
||||
Then user "[user:other]" is not listed
|
||||
|
||||
Scenario: Login to account without internet
|
||||
Given the internet is turned off
|
||||
When the user logs in with username "user" and password "password"
|
||||
Then user "user" is not listed
|
||||
When the user logs in with username "[user:user]" and password "password"
|
||||
Then user "[user:user]" is not listed
|
||||
|
||||
Scenario: Login to account without internet but the connection is later restored
|
||||
When the user logs in with username "user" and password "password"
|
||||
When the user logs in with username "[user:user]" and password "password"
|
||||
And bridge stops
|
||||
And the internet is turned off
|
||||
And bridge starts
|
||||
And the internet is turned on
|
||||
Then user "user" is eventually listed and connected
|
||||
Then user "[user:user]" is eventually listed and connected
|
||||
|
||||
Scenario: Login to multiple accounts
|
||||
Given there exists an account with username "additional" and password "other"
|
||||
When the user logs in with username "user" and password "password"
|
||||
And the user logs in with username "additional" and password "other"
|
||||
Then user "user" is listed and connected
|
||||
And user "additional" is listed and connected
|
||||
Given there exists an account with username "[user:additional]" and password "password"
|
||||
When the user logs in with username "[user:user]" and password "password"
|
||||
And the user logs in with username "[user:additional]" and password "password"
|
||||
Then user "[user:user]" is listed and connected
|
||||
And user "[user:additional]" is listed and connected
|
||||
Reference in New Issue
Block a user