mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
use user without already activated email to prevent 'Email already sent less than 1 minutes ago' error
This commit is contained in:
parent
eb1b663377
commit
579560c3e8
9
.github/workflows/test_e2e.yml
vendored
9
.github/workflows/test_e2e.yml
vendored
@ -20,7 +20,6 @@ jobs:
|
||||
run: |
|
||||
sudo chown runner:docker -R *
|
||||
bun install
|
||||
sudo cp ./nginx/e2e-test.conf /etc/nginx/sites-available/default
|
||||
|
||||
- name: wait for database to be ready
|
||||
run: docker run --rm --network gradido_internal-net busybox sh -c 'until nc -z mariadb 3306; do echo waiting for db; sleep 1; done;'
|
||||
@ -53,14 +52,6 @@ jobs:
|
||||
until nc -z 127.0.0.1 3000; do echo waiting for frontend; sleep 1; done;
|
||||
until nc -z 127.0.0.1 4000; do echo waiting for backend; sleep 1; done;
|
||||
|
||||
- name: Start local nginx webserver
|
||||
run: |
|
||||
sudo nginx -t
|
||||
sudo systemctl start nginx
|
||||
|
||||
- name: wait for nginx to be ready
|
||||
run: until nc -z 127.0.0.1 80; do echo waiting for nginx; sleep 1; done;
|
||||
|
||||
- name: End-to-end tests | run tests
|
||||
id: e2e-tests
|
||||
run: |
|
||||
|
||||
@ -22,10 +22,10 @@ Feature: User Authentication - reset password
|
||||
Scenario: Reset password from signin page successfully
|
||||
# Given the following "users" are in the database:
|
||||
# | email | password | name |
|
||||
# | raeuber@hotzenplotz.de | Aa12345_ | Räuber Hotzenplotz |
|
||||
# | garrick@ollivander.com | Aa12345_ | Garrick Ollivander |
|
||||
Given the user navigates to page "/login"
|
||||
And the user navigates to the forgot password page
|
||||
When the user enters the e-mail address "raeuber@hotzenplotz.de"
|
||||
When the user enters the e-mail address "garrick@ollivander.com"
|
||||
And the user submits the e-mail form
|
||||
Then the user receives an e-mail containing the "password reset" link
|
||||
When the user opens the "password reset" link in the browser
|
||||
@ -33,10 +33,10 @@ Feature: User Authentication - reset password
|
||||
And the user repeats the password "12345Aa_"
|
||||
And the user submits the password form
|
||||
And the user clicks the sign in button
|
||||
Then the user submits the credentials "raeuber@hotzenplotz.de" "Aa12345_"
|
||||
Then the user submits the credentials "garrick@ollivander.com" "Aa12345_"
|
||||
And the user cannot login
|
||||
But the user submits the credentials "raeuber@hotzenplotz.de" "12345Aa_"
|
||||
And the user is logged in with username "Räuber Hotzenplotz"
|
||||
But the user submits the credentials "garrick@ollivander.com" "12345Aa_"
|
||||
And the user is logged in with username "Garrick Ollivander"
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user