mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
missing stuff that should be missing
This commit is contained in:
parent
39fb4b98d3
commit
a40cab7f5c
@ -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);
|
||||
});
|
||||
@ -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"
|
||||
Loading…
x
Reference in New Issue
Block a user