Skip to content

Commit

Permalink
ngrok warning page bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
Justas Vaitkus authored and Justas Vaitkus committed Oct 16, 2024
1 parent 56d5242 commit 8d75a14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cypress/e2e/01-moduleConfig.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('PS817 Module Configuration', {
})
it('01 Connecting the Test API information to module', () => {
cy.visit('/admin1/')
cy.ngrokPassWarning()
cy.OpeningModuleDashboardURL() //clicking the Congifure
cy.get('[name="SAFERPAY_USERNAME_TEST"]').type((Cypress.env('SAFERPAY_USERNAME_TEST')), { delay: 0, log: false })
cy.get('[name="SAFERPAY_PASSWORD_TEST"]').type((Cypress.env('SAFERPAY_PASSWORD_TEST')), { delay: 0, log: false })
Expand Down
3 changes: 3 additions & 0 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ Cypress.Commands.add(
cy.visit('/admin1/index.php?controller=AdminModules&configure=saferpayofficial')
cy.get('.btn-continue').click()
})
Cypress.Commands.add("ngrokPassWarning", () => {
cy.get('button').first().click();
})

Cypress.Commands.add("navigatingToThePaymentCHF", () => {
cy.visit('/en/order-history')
Expand Down

0 comments on commit 8d75a14

Please sign in to comment.