From 4271ee16a23c4226e0fe7b0a2b49bc403eff5a34 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sat, 10 Apr 2021 02:18:50 +0200 Subject: [PATCH] feature Authentication (not working yet) --- cypress/integration/Authentication.feature | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 cypress/integration/Authentication.feature diff --git a/cypress/integration/Authentication.feature b/cypress/integration/Authentication.feature new file mode 100644 index 000000000..22e2668a8 --- /dev/null +++ b/cypress/integration/Authentication.feature @@ -0,0 +1,26 @@ +Feature: Authentication + As an user + I want to sign in + In order to be able to posts and do other contributions as myself + + Background: + Given I have an user account + + Scenario: Log in + When I visit the "login" page + And I fill in my email and password combination + And I click submit + And I wait for 50000 milliseconds + Then I can click on my profile picture in the top right corner + And I wait for 50000 milliseconds + 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