Files
proton-bridge/tests/features/smtp/auth.feature
2022-11-16 12:26:08 +01:00

22 lines
965 B
Gherkin

Feature: A user can authenticate an SMTP client
Background:
Given there exists an account with username "user@pm.me" and password "password"
And bridge starts
And the user logs in with username "user@pm.me" and password "password"
Scenario: SMTP client can authenticate successfully
When user "user@pm.me" connects SMTP client "1"
Then SMTP client "1" can authenticate
Scenario: SMTP client cannot authenticate with wrong username
When user "user@pm.me" connects SMTP client "1"
Then SMTP client "1" cannot authenticate with incorrect username
Scenario: SMTP client cannot authenticate with wrong password
When user "user@pm.me" connects SMTP client "1"
Then SMTP client "1" cannot authenticate with incorrect password
Scenario: SMTP client cannot authenticate for disconnected user
When user "user@pm.me" logs out
And user "user@pm.me" connects SMTP client "1"
Then SMTP client "1" cannot authenticate