Skip to content

Commit

Permalink
- changing url to avoid redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
elipe17 committed Jun 13, 2024
1 parent 89f8dc2 commit 06af396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/test/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Cypress.Commands.add('adminApiLogin', () => {
})

Cypress.Commands.add('adminLogin', () => {
cy.visit(`${Cypress.env('adminUrl')}/login`).then(() => {
cy.visit(`${Cypress.env('adminUrl')}/login/?next=/admin/`).then(() => {
cy.get('input[name="username"]').type(Cypress.env('adminUsername'))
cy.get('input[name="password"]').type(Cypress.env('adminPassword'))
cy.get('input[type="submit"]').click()
Expand Down

0 comments on commit 06af396

Please sign in to comment.