Skip to content

Commit

Permalink
✨ Cambios en e2e - redirección a main
Browse files Browse the repository at this point in the history
  • Loading branch information
coral2742 committed May 8, 2024
1 parent 13b6cf6 commit ad64fff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webapp/e2e/features/register-form.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Feature: Registering a new user
Scenario: The user is not registered in the site
Given An unregistered user
When I fill the data in the form and press submit
Then A confirmation message should be shown in the screen
Then I should be redirected to main page
4 changes: 2 additions & 2 deletions webapp/e2e/steps/register-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ defineFeature(feature, test => {
await expect(page).toClick('button', { text: 'Crear usuario' })
});

then('A confirmation message should be shown in the screen', async () => {
await expect(page).toMatchElement("div", { text: "Usuario añadido correctamente" });
then('I should be redirected to main page', async () => {
await expect(page).toMatchElement("h2", { text: "¡Bienvenido a" });
});
})

Expand Down

0 comments on commit ad64fff

Please sign in to comment.