mirror of
https://github.com/plankanban/planka.git
synced 2025-12-28 09:15:02 +03:00
22
client/tests/acceptance/features/login.feature
Normal file
22
client/tests/acceptance/features/login.feature
Normal file
@@ -0,0 +1,22 @@
|
||||
Feature: Login
|
||||
Background:
|
||||
Given the user navigates to the login page
|
||||
|
||||
Scenario: User logs in with valid credentials
|
||||
When the user logs in with email or username "demo" and password "demo" via the web UI
|
||||
Then the user should be redirected to the home page
|
||||
|
||||
Scenario Outline: User logs in with invalid credentials
|
||||
When the user logs in with email or username "<emailOrUsername>" and password "<password>" via the web UI
|
||||
Then the user should see the message "<message>"
|
||||
|
||||
Examples:
|
||||
| emailOrUsername | password | message |
|
||||
| spiderman | spider123 | Invalid credentials |
|
||||
| ironman | iron123 | Invalid credentials |
|
||||
| aquaman | aqua123 | Invalid credentials |
|
||||
|
||||
Scenario: User logs out
|
||||
Given the user is logged in with email or username "demo" and password "demo"
|
||||
When the user logs out via the web UI
|
||||
Then the user should be redirected to the login page
|
||||
@@ -1,10 +0,0 @@
|
||||
Feature: dashboard
|
||||
As a admin
|
||||
I want to create a project
|
||||
So that I can manage project
|
||||
|
||||
Scenario: create a new project
|
||||
Given user has browsed to the login page
|
||||
And user has logged in with email "demo@demo.demo" and password "demo"
|
||||
When the user creates a project with name "testproject" using the webUI
|
||||
Then the created project "testproject" should be opened
|
||||
@@ -1,27 +0,0 @@
|
||||
Feature: login
|
||||
As a admin
|
||||
I want to log in
|
||||
So that I can manage project
|
||||
|
||||
|
||||
Scenario: User logs in with valid credentials
|
||||
Given user has browsed to the login page
|
||||
When user logs in with username "demo@demo.demo" and password "demo" using the webUI
|
||||
Then the user should be in dashboard page
|
||||
|
||||
|
||||
Scenario Outline: login with invalid username and invalid password
|
||||
Given user has browsed to the login page
|
||||
When user logs in with username "<username>" and password "<password>" using the webUI
|
||||
Then user should see the error message "<message>"
|
||||
Examples:
|
||||
| username | password | message |
|
||||
| spiderman | spidy123 | Invalid credentials |
|
||||
| ironman | iron123 | Invalid credentials |
|
||||
| aquaman | aqua123 | Invalid credentials |
|
||||
|
||||
|
||||
Scenario: User can log out
|
||||
Given user has logged in with email "demo@demo.demo" and password "demo"
|
||||
When user logs out using the webUI
|
||||
Then the user should be in the login page
|
||||
Reference in New Issue
Block a user