Skip to content

Commit

Permalink
Reformulacion de escenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
uo276026 committed Apr 8, 2024
1 parent b7a55a0 commit 86c70a5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion webapp/e2e/features/home.feature
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion webapp/e2e/features/login.feature
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion webapp/e2e/steps/home.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/login.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
Expand Down

0 comments on commit 86c70a5

Please sign in to comment.