Skip to content

Commit

Permalink
visual regression approach updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonasB88 committed Dec 18, 2023
1 parent f8964a8 commit f66f87c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ it('C339339: 03 Checking the Advanced Settings tab, verifying the Front-end comp
cy.get('[name="MOLLIE_SUBSCRIPTION_ORDER_CARRIER_ID"]').select('My carrier')
cy.get('#module_form_submit_btn').click({force:true}) //checking the saving
cy.get('[class="alert alert-success"]').should('be.visible') //checking if saving returns green alert
cy.reload()
cy.matchImage(); // let's make a snapshot for visual regression testing later, if UI matches
//cy.window() will check if there are no Errors in console
});
it('C688472: Checking the Subscriptions tab, and console errors', () => {
Expand All @@ -97,5 +99,6 @@ it('C688473: Checking the Subscriptions FAQ, and console errors', () => {
cy.get(':nth-child(3) > .col-lg-12 > .card').should('be.visible')
cy.get(':nth-child(4) > .col-lg-12 > .card').should('be.visible')
cy.get(':nth-child(5) > .col-lg-12 > .card').should('be.visible')
cy.matchImage(); // let's make a snapshot for visual regression testing later, if UI matches
});
})
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ it('C339341: 04 Enabling All payments in Module BO [Orders API]', () => {
cy.ConfOrdersAPI1784()
cy.get('[type="submit"]').first().click({force:true})
cy.get('[class="alert alert-success"]').should('be.visible')
cy.reload()
cy.matchImage(); // let's make a snapshot for visual regression testing later, if UI matches
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ it.skip('C339343: 06 Vouchers Order BO Refunding, Shipping (Paid part only) [Ord
})
it('C339344: 07 Bancontact Checkouting [Orders API]', () => {
cy.navigatingToThePayment()
cy.matchImage(); // let's make a snapshot for visual regression testing later, if UI matches
//Payment method choosing
cy.contains('Bancontact').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
Expand Down
4 changes: 4 additions & 0 deletions cypress/e2e/ps8/01_mollie.ps8.ModuleConfiguration.specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ it('C339339: Checking the Advanced Settings tab, verifying the Front-end compone
cy.get('[name="MOLLIE_SUBSCRIPTION_ORDER_CARRIER_ID"]').select('Click and collect')
cy.get('#module_form_submit_btn').click({force:true}) //checking the saving
cy.get('[class="alert alert-success"]').should('be.visible') //checking if saving returns green alert
cy.reload()
cy.matchImage(); // let's make a snapshot for visual regression testing later, if UI matches
//cy.window() will check if there are no Errors in console
});
it('C688472: Checking the Subscriptions tab, and console errors', () => {
Expand All @@ -101,5 +103,7 @@ it('C688473: Checking the Subscriptions FAQ, and console errors', () => {
cy.get(':nth-child(4) > .col-lg-12 > .card').should('be.visible')
cy.get(':nth-child(5) > .col-lg-12 > .card').should('be.visible')
cy.get(':nth-child(6) > .col-lg-12 > .card').should('be.visible')
cy.matchImage(); // let's make a snapshot for visual regression testing later, if UI matches

});
})
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,7 @@ it('C339341: 04 Enabling All payments in Module BO [Orders API]', () => {
cy.ConfOrdersAPI1784()
cy.get('[type="submit"]').first().click({force:true})
cy.get('[class="alert alert-success"]').should('be.visible')
cy.reload()
cy.matchImage(); // let's make a snapshot for visual regression testing later, if UI matches
})
})
1 change: 1 addition & 0 deletions cypress/e2e/ps8/03_mollie.ps8.PaymentTestsOrdersAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ it.skip('C339343: 06 Vouchers Order BO Refunding, Shipping (Paid part only) [Ord
})
it('C339344: 07 Bancontact Checkouting [Orders API]', () => {
cy.navigatingToThePaymentPS8()
cy.matchImage(); // let's make a snapshot for visual regression testing later, if UI matches
//Payment method choosing
cy.contains('Bancontact').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
Expand Down

0 comments on commit f66f87c

Please sign in to comment.