From 2b0176cef23049e845feeb98e4f16400ed334a7b Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sun, 11 Apr 2021 03:51:43 +0200 Subject: [PATCH] missing stuff that should be missing --- .../I_fill_in_my_credentials.js | 11 ------- .../user_account/.ChangePassword.feature | 30 ------------------- 2 files changed, 41 deletions(-) delete mode 100644 cypress/integration/Authentication/I_fill_in_my_credentials.js delete mode 100644 cypress/integration/user_account/.ChangePassword.feature diff --git a/cypress/integration/Authentication/I_fill_in_my_credentials.js b/cypress/integration/Authentication/I_fill_in_my_credentials.js deleted file mode 100644 index e0d90e744..000000000 --- a/cypress/integration/Authentication/I_fill_in_my_credentials.js +++ /dev/null @@ -1,11 +0,0 @@ -import { When } from "cypress-cucumber-preprocessor/steps"; -import loginCredentials from '../data/loginCredentials' - -When("I fill in my credentials", () => { - cy.get("input[name=email]") - .trigger("focus") - .type(loginCredentials.email) - .get("input[name=password]") - .trigger("focus") - .type(loginCredentials.password); -}); \ No newline at end of file diff --git a/cypress/integration/user_account/.ChangePassword.feature b/cypress/integration/user_account/.ChangePassword.feature deleted file mode 100644 index dbdf724f7..000000000 --- a/cypress/integration/user_account/.ChangePassword.feature +++ /dev/null @@ -1,30 +0,0 @@ -Feature: Change password - As a user - I want to change my password in my settings - For security, e.g. if I exposed my password by accident - - Login via email and password is a well-known authentication procedure and you - can assure to the server that you are who you claim to be. Either if you - exposed your password by acccident and you want to invalidate the exposed - password or just out of an good habit, you want to change your password. - - Background: - Given I am logged in with these credentials: - | email | password | - | user@example.org | exposed | - - Scenario: Change my password - Given I am on the "settings" page - And I click on "Security" - When I fill the password form with: - | Your old password | exposed | - | Your new passsword | secure | - | Confirm new password | secure | - And submit the form - And I see a success message: - """ - Password successfully changed! - """ - And I log out through the menu in the top right corner - Then I cannot login anymore with password "exposed" - But I can login successfully with password "secure"