missing stuff that should be missing

This commit is contained in:
Ulf Gebhardt 2021-04-11 03:51:43 +02:00
parent 39fb4b98d3
commit a40cab7f5c
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 0 additions and 41 deletions

View File

@ -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);
});

View File

@ -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"