Skip to content

Commit

Permalink
adding additional assertions of frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonasB88 committed Mar 18, 2024
1 parent e02b8b7 commit 9dbe462
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ describe('PS1785 Module initial configuration setup', () => {
it('C339305: 01 Connecting test API successsfully', () => {
cy.visit('/admin1/')
cy.OpeningModuleDashboardURL()
cy.get('body')
.invoke('text').should('contain','Mollie')
.then((text) => {
cy.log(text) // Showing and asserting the text that loaded, to ensure the BO is loaded, not crashed with PHP fatals etc.
})
cy.get('#MOLLIE_ACCOUNT_SWITCH_on').click({force:true})
cy.get('#MOLLIE_API_KEY_TEST').type((Cypress.env('MOLLIE_TEST_API_KEY')),{delay: 0, log: false})
cy.get('#module_form_submit_btn').click()
Expand Down
5 changes: 5 additions & 0 deletions cypress/e2e/ps8/01_mollie.ps8.ModuleConfiguration.specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ it('C339305: Connecting test API successsfully', () => {
cy.visit('/admin1/')
cy.get('.mi-mollie').click({fore:true})
cy.get('#subtab-AdminMollieModule').click()
cy.get('body')
.invoke('text').should('contain','Mollie')
.then((text) => {
cy.log(text) // Showing and asserting the text that loaded, to ensure the BO is loaded, not crashed with PHP fatals etc.
})
cy.get('#MOLLIE_ACCOUNT_SWITCH_on').click({force:true})
cy.get('#MOLLIE_API_KEY_TEST').type((Cypress.env('MOLLIE_TEST_API_KEY')),{delay: 0, log: false})
cy.get('#module_form_submit_btn').click()
Expand Down

0 comments on commit 9dbe462

Please sign in to comment.