Ocelot-Social/cypress/integration/Authentication.feature
Ulf Gebhardt 46452c2e4a
unified click events
separated post in post.create & post
2021-04-14 20:36:13 +02:00

25 lines
631 B
Gherkin

Feature: Authentication
As an user
I want to sign in
In order to be able to posts and do other contributions as myself
Furthermore I want to be able to stay logged in and logout again
Background:
Given I have an user account
Scenario: Log in
When I navigate to page "login"
And I fill in my credentials
And I click on "submit button"
Then I am logged in as "Peter Pan"
Scenario: Refresh and stay logged in
Given I am logged in
When I refresh the page
Then I am logged in as "Peter Pan"
Scenario: Log out
Given I am logged in
When I log out
Then I am on page "login"