2022-08-26 15:00:21 +00:00
|
|
|
Feature: A user can login
|
|
|
|
Background:
|
2023-11-27 12:30:30 +00:00
|
|
|
Given there exists an account with username "[user:user]" and password "password2"
|
2023-05-22 11:16:56 +00:00
|
|
|
Then it succeeds
|
2022-08-26 15:00:21 +00:00
|
|
|
And bridge starts
|
2023-05-22 11:16:56 +00:00
|
|
|
Then it succeeds
|
2022-08-26 15:00:21 +00:00
|
|
|
|
|
|
|
Scenario: Login to account
|
2023-11-27 12:30:30 +00:00
|
|
|
When the user logs in with username "[user:user]" and password "password2"
|
2023-02-14 16:07:45 +00:00
|
|
|
Then user "[user:user]" is eventually listed and connected
|
2022-08-26 15:00:21 +00:00
|
|
|
|
|
|
|
Scenario: Login to account with wrong password
|
2022-12-13 00:33:41 +00:00
|
|
|
When the user logs in with username "[user:user]" and password "wrong"
|
|
|
|
Then user "[user:user]" is not listed
|
2022-08-26 15:00:21 +00:00
|
|
|
|
|
|
|
Scenario: Login to nonexistent account
|
2023-02-07 16:32:44 +00:00
|
|
|
When the user logs in with username "nonexistent" and password "unknown"
|
|
|
|
Then user "nonexistent" is not listed
|
2022-08-26 15:00:21 +00:00
|
|
|
|
|
|
|
Scenario: Login to account without internet
|
|
|
|
Given the internet is turned off
|
2023-11-27 12:30:30 +00:00
|
|
|
When the user logs in with username "[user:user]" and password "password2"
|
2022-12-13 00:33:41 +00:00
|
|
|
Then user "[user:user]" is not listed
|
2022-08-26 15:00:21 +00:00
|
|
|
|
2024-02-19 10:43:35 +00:00
|
|
|
# Mixed caps doesn't work on black
|
|
|
|
@skip-black
|
2023-01-10 10:47:05 +00:00
|
|
|
Scenario: Login to account with caps
|
2024-02-19 10:43:35 +00:00
|
|
|
Given there exists an account with username "[user:MixedCaps]" and password "password3"
|
|
|
|
And it succeeds
|
2023-11-27 12:30:30 +00:00
|
|
|
When the user logs in with username "[user:MixedCaps]" and password "password3"
|
2023-02-14 16:07:45 +00:00
|
|
|
Then user "[user:MixedCaps]" is eventually listed and connected
|
2023-01-10 10:47:05 +00:00
|
|
|
|
2024-02-19 10:43:35 +00:00
|
|
|
# Mixed caps doesn't work on black
|
|
|
|
@skip-black
|
2023-01-10 10:47:05 +00:00
|
|
|
Scenario: Login to account with disabled primary
|
2024-02-19 10:43:35 +00:00
|
|
|
Given there exists a disabled account with username "[user:disabled]" and password "password4"
|
2023-11-27 12:30:30 +00:00
|
|
|
When the user logs in with username "[user:disabled]" and password "password4"
|
2023-02-14 16:07:45 +00:00
|
|
|
Then user "[user:disabled]" is eventually listed and connected
|
2023-01-10 10:47:05 +00:00
|
|
|
|
2022-09-27 10:02:28 +00:00
|
|
|
Scenario: Login to account without internet but the connection is later restored
|
2023-11-27 12:30:30 +00:00
|
|
|
When the user logs in with username "[user:user]" and password "password2"
|
2022-09-27 10:02:28 +00:00
|
|
|
And bridge stops
|
|
|
|
And the internet is turned off
|
|
|
|
And bridge starts
|
|
|
|
And the internet is turned on
|
2022-12-13 00:33:41 +00:00
|
|
|
Then user "[user:user]" is eventually listed and connected
|
2022-09-27 10:02:28 +00:00
|
|
|
|
2022-08-26 15:00:21 +00:00
|
|
|
Scenario: Login to multiple accounts
|
2022-12-13 00:33:41 +00:00
|
|
|
Given there exists an account with username "[user:additional]" and password "password"
|
2023-11-27 12:30:30 +00:00
|
|
|
When the user logs in with username "[user:user]" and password "password2"
|
2022-12-13 00:33:41 +00:00
|
|
|
And the user logs in with username "[user:additional]" and password "password"
|
2023-02-14 16:07:45 +00:00
|
|
|
Then user "[user:user]" is eventually listed and connected
|
2024-01-19 08:45:32 +00:00
|
|
|
And user "[user:additional]" is eventually listed and connected
|
|
|
|
|
2024-01-18 15:56:56 +00:00
|
|
|
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
|