Skip to content

Commit

Permalink
Merge pull request #904 from mollie/e2e-updates-april
Browse files Browse the repository at this point in the history
E2E updates April
  • Loading branch information
SimonasB88 authored Apr 9, 2024
2 parents 25e608a + 0b05066 commit 8d951f1
Show file tree
Hide file tree
Showing 3 changed files with 1,560 additions and 153 deletions.
5 changes: 2 additions & 3 deletions cypress/e2e/ps8/03_mollie.ps8.PaymentTestsOrdersAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ it('C1765085: Billie Checkouting [Orders API]', () => {
it('C1765086: Billie Order Shipping, Refunding [Orders API]', () => {
cy.OrderShippingRefundingOrdersAPI()
})
it('C1860460: Pay with Klarna UK Checkouting [Orders API]', () => { // currently not supported for PS, skipping temporary
it('C1860460: Pay with Klarna UK Checkouting [Orders API]', () => {
cy.visit('/en/order-history')
cy.contains('Reorder').click()
cy.contains('UK').click({force:true})
Expand All @@ -322,7 +322,6 @@ it('C1860460: Pay with Klarna UK Checkouting [Orders API]', () => { // currently
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
});
it('C1860461: Pay with Klarna UK Order Shipping, Refunding [Orders API]', () => { // currently not supported for PS, skipping temporary
cy.OrderShippingRefundingOrdersAPI()
it('C1860461: Pay with Klarna UK Order Shipping, Refunding [Orders API]', () => {
})
})
31 changes: 31 additions & 0 deletions cypress/e2e/ps8/09_mollie.ps8.MobileViewportCheck.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/// <reference types="Cypress" />

describe('PS8 Viewports check', {
retries: {
runMode: 0,
openMode: 0,
},
failFast: {
enabled: false,
}
},() => {
beforeEach(() => {
cy.viewport("iphone-x")
cy.CachingBOFOPS8()
})
it('C2920232: PS8 - iPhone X viewport validation flow', () => {
cy.visit('/de/index.php?controller=history')
cy.get('[title="Reorder"]').first().click()
cy.contains('NL').click()
//Billing country LT, DE etc.
cy.get('.clearfix > .btn').click()
cy.get('#js-delivery > .continue').click()
//Payment method choosing
cy.contains('Bancontact').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
cy.contains('Place order').click()
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
});
})
Loading

0 comments on commit 8d951f1

Please sign in to comment.