forked from Silverfish/proton-bridge
79 lines
2.7 KiB
Gherkin
79 lines
2.7 KiB
Gherkin
Feature: Login for the first time
|
|
@ignore-live-auth
|
|
Scenario: Normal login
|
|
Given there is user "user"
|
|
When "user" logs in
|
|
Then last response is "OK"
|
|
And "user" is connected
|
|
And "user" has database file
|
|
And "user" has running event loop
|
|
And "user" has non-zero space
|
|
|
|
@ignore-live
|
|
Scenario: Login with bad username
|
|
When "user" logs in with bad password
|
|
Then last response is "failed to login: Incorrect login credentials. Please try again"
|
|
|
|
@ignore-live
|
|
Scenario: Login with bad password
|
|
Given there is user "user"
|
|
When "user" logs in with bad password
|
|
Then last response is "failed to login: Incorrect login credentials. Please try again"
|
|
|
|
@ignore-live-auth
|
|
Scenario: Login without internet connection
|
|
Given there is no internet connection
|
|
When "user" logs in
|
|
Then last response is "failed to login: no internet connection"
|
|
|
|
@ignore-live
|
|
Scenario: Login user with 2FA
|
|
Given there is user "user2fa"
|
|
When "user2fa" logs in
|
|
Then last response is "OK"
|
|
And "user2fa" is connected
|
|
And "user2fa" has database file
|
|
And "user2fa" has running event loop
|
|
And "user2fa" has non-zero space
|
|
|
|
@ignore-live-auth
|
|
Scenario: Login user with capital letters in address
|
|
Given there is user "userAddressWithCapitalLetter"
|
|
When "userAddressWithCapitalLetter" logs in
|
|
Then last response is "OK"
|
|
And "userAddressWithCapitalLetter" is connected
|
|
And "userAddressWithCapitalLetter" has database file
|
|
And "userAddressWithCapitalLetter" has running event loop
|
|
And "userAddressWithCapitalLetter" has non-zero space
|
|
|
|
@ignore-live-auth
|
|
Scenario: Login user with more addresses
|
|
Given there is user "userMoreAddresses"
|
|
When "userMoreAddresses" logs in
|
|
Then last response is "OK"
|
|
And "userMoreAddresses" is connected
|
|
And "userMoreAddresses" has database file
|
|
And "userMoreAddresses" has running event loop
|
|
And "userMoreAddresses" has non-zero space
|
|
|
|
@ignore-live
|
|
Scenario: Login user with disabled primary address
|
|
Given there is user "userDisabledPrimaryAddress"
|
|
When "userDisabledPrimaryAddress" logs in
|
|
Then last response is "OK"
|
|
And "userDisabledPrimaryAddress" is connected
|
|
And "userDisabledPrimaryAddress" has database file
|
|
And "userDisabledPrimaryAddress" has running event loop
|
|
And "userDisabledPrimaryAddress" has non-zero space
|
|
|
|
@ignore-live-auth
|
|
Scenario: Login two users
|
|
Given there is user "user"
|
|
And there is user "userMoreAddresses"
|
|
When "user" logs in
|
|
Then last response is "OK"
|
|
And "user" is connected
|
|
When "userMoreAddresses" logs in
|
|
Then last response is "OK"
|
|
And "userMoreAddresses" is connected
|