mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 03:41:27 +00:00
28 lines
1020 B
Gherkin
28 lines
1020 B
Gherkin
Feature: Authentication
|
|
As a database administrator
|
|
I want users to sign in
|
|
In order to attribute posts and other contributions to their authors
|
|
|
|
Background:
|
|
Given my account has the following details:
|
|
| name | email | password | type
|
|
| Peter Lustig | admin@example.org | 1234 | Admin
|
|
| Bob der Bausmeister | moderator@example.org | 1234 | Moderator
|
|
| Jenny Rostock" | user@example.org | 1234 | User
|
|
|
|
Scenario: Log in
|
|
When I visit the "/login" page
|
|
And I fill in my email and password combination and click submit
|
|
Then I can click on my profile picture in the top right corner
|
|
And I can see my name "Peter Lustig" in the dropdown menu
|
|
|
|
Scenario: Refresh and stay logged in
|
|
Given I am logged in
|
|
When I refresh the page
|
|
Then I am still logged in
|
|
|
|
Scenario: Log out
|
|
Given I am logged in
|
|
When I log out through the menu in the top right corner
|
|
Then I see the login screen again
|