Skip to content

Commit

Permalink
selector moved to index.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
mflorlorenzo committed Jul 9, 2024
1 parent 96a38ea commit f55372c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/fixtures/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"emailTextBox": "input[name='login']",
"passTextBox": "input[name='password']",
"submitLoginButton": "button[type='submit']",
"logoutButton": ""
"formSubmitRowClass": ".formSubmitRow-controls"
}
2 changes: 1 addition & 1 deletion cypress/support/page_objects/userLoginPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
Expand Down

0 comments on commit f55372c

Please sign in to comment.