diff --git a/webapp/e2e/features/register-form.feature b/webapp/e2e/features/register-form.feature index aad790a5..b9134eb0 100644 --- a/webapp/e2e/features/register-form.feature +++ b/webapp/e2e/features/register-form.feature @@ -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 \ No newline at end of file + Then I should be redirected to main page \ No newline at end of file diff --git a/webapp/e2e/steps/register-form.steps.js b/webapp/e2e/steps/register-form.steps.js index 1b467705..5bf32410 100644 --- a/webapp/e2e/steps/register-form.steps.js +++ b/webapp/e2e/steps/register-form.steps.js @@ -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" }); }); })