From 86c70a5433e6a0e5fba896956f5424d58c8f17d7 Mon Sep 17 00:00:00 2001 From: Lara Date: Mon, 8 Apr 2024 14:02:19 +0200 Subject: [PATCH] Reformulacion de escenarios --- webapp/e2e/features/home.feature | 2 +- webapp/e2e/features/login.feature | 2 +- webapp/e2e/steps/home.steps.js | 2 +- webapp/e2e/steps/login.steps.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/webapp/e2e/features/home.feature b/webapp/e2e/features/home.feature index 789879d..8757b4a 100644 --- a/webapp/e2e/features/home.feature +++ b/webapp/e2e/features/home.feature @@ -1,6 +1,6 @@ Feature: Access the app Scenario: A registered user enters the app - Given An existing user + Given A user that is logged in the application When I navigate to the Home page Then I should be able to interact with the app \ No newline at end of file diff --git a/webapp/e2e/features/login.feature b/webapp/e2e/features/login.feature index ea71ca8..0e9af46 100644 --- a/webapp/e2e/features/login.feature +++ b/webapp/e2e/features/login.feature @@ -1,6 +1,6 @@ Feature: Logging in as a user Scenario: Logging in with valid credentials - Given An existing user + Given A user that is logged in the application When I enter valid username and password Then A confirmation message should be shown in the screen \ No newline at end of file diff --git a/webapp/e2e/steps/home.steps.js b/webapp/e2e/steps/home.steps.js index 9769449..c736ee3 100644 --- a/webapp/e2e/steps/home.steps.js +++ b/webapp/e2e/steps/home.steps.js @@ -28,7 +28,7 @@ defineFeature(feature, test => { let username; let password; - given('An existing user', async () => { + given('A user that is logged in the application', async () => { username = "pablo" password = "pabloasw" await expect(page).toClick("button", { text: "INICIA SESIÓN" }); diff --git a/webapp/e2e/steps/login.steps.js b/webapp/e2e/steps/login.steps.js index bb9b6f3..2cdc25e 100644 --- a/webapp/e2e/steps/login.steps.js +++ b/webapp/e2e/steps/login.steps.js @@ -28,7 +28,7 @@ defineFeature(feature, test => { let username; let password; - given('An existing user', async () => { + given('A user that is logged in the application', async () => { username = "pablo" password = "pabloasw" await expect(page).toClick("button", { text: "INICIA SESIÓN" });