mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-27 04:06:43 +00:00
GODT-1779: Remove go-imap
This commit is contained in:
28
tests/features/user/login.feature
Normal file
28
tests/features/user/login.feature
Normal file
@ -0,0 +1,28 @@
|
||||
Feature: A user can login
|
||||
Background:
|
||||
Given there exists an account with username "user@pm.me" and password "password"
|
||||
And bridge starts
|
||||
|
||||
Scenario: Login to account
|
||||
When the user logs in with username "user@pm.me" and password "password"
|
||||
Then user "user@pm.me" is listed and connected
|
||||
|
||||
Scenario: Login to account with wrong password
|
||||
When the user logs in with username "user@pm.me" and password "wrong"
|
||||
Then user "user@pm.me" is not listed
|
||||
|
||||
Scenario: Login to nonexistent account
|
||||
When the user logs in with username "other@pm.me" and password "unknown"
|
||||
Then user "other@pm.me" is not listed
|
||||
|
||||
Scenario: Login to account without internet
|
||||
Given the internet is turned off
|
||||
When the user logs in with username "user@pm.me" and password "password"
|
||||
Then user "user@pm.me" is not listed
|
||||
|
||||
Scenario: Login to multiple accounts
|
||||
Given there exists an account with username "additional@pm.me" and password "other"
|
||||
When the user logs in with username "user@pm.me" and password "password"
|
||||
And the user logs in with username "additional@pm.me" and password "other"
|
||||
Then user "user@pm.me" is listed and connected
|
||||
And user "additional@pm.me" is listed and connected
|
||||
Reference in New Issue
Block a user