Skip to content

Commit

Permalink
adding iPhone X viewport E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonasB88 committed Apr 8, 2024
1 parent b6f4abc commit 1566cec
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 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')
});
})
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Cypress.Commands.add("ConfPaymentsAPI1784", () => {
})
Cypress.Commands.add("navigatingToThePaymentPS8", () => {
cy.visit('/de/index.php?controller=history')
cy.contains('Reorder').click()
cy.get('[Reorder]').click()
cy.contains('NL').click()
//Billing country LT, DE etc.
cy.get('.clearfix > .btn').click()
Expand Down

0 comments on commit 1566cec

Please sign in to comment.