From f55372ce17dbdfde647bbaf1306457d0e42ca9cc Mon Sep 17 00:00:00 2001 From: florencialorenzo Date: Tue, 9 Jul 2024 18:57:03 -0300 Subject: [PATCH] selector moved to index.json file --- cypress/fixtures/index.json | 2 +- cypress/support/page_objects/userLoginPage.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/fixtures/index.json b/cypress/fixtures/index.json index 84077a8..3e92558 100644 --- a/cypress/fixtures/index.json +++ b/cypress/fixtures/index.json @@ -5,5 +5,5 @@ "emailTextBox": "input[name='login']", "passTextBox": "input[name='password']", "submitLoginButton": "button[type='submit']", - "logoutButton": "" + "formSubmitRowClass": ".formSubmitRow-controls" } diff --git a/cypress/support/page_objects/userLoginPage.js b/cypress/support/page_objects/userLoginPage.js index ed27e87..ea0ea13 100644 --- a/cypress/support/page_objects/userLoginPage.js +++ b/cypress/support/page_objects/userLoginPage.js @@ -5,7 +5,7 @@ export class UserLoginPage { cy.get(selectors.loginButton).click(); cy.get(selectors.emailTextBox).type(Cypress.env("username")); cy.get(selectors.passTextBox).type(Cypress.env("password")); - cy.get(".formSubmitRow-controls").within(() => { + cy.get(selectors.formSubmitRowClass).within(() => { cy.get(selectors.submitLoginButton).click(); }); }