diff --git a/cypress/e2e/ps8/03_mollie.ps8.PaymentTestsOrdersAPI.js b/cypress/e2e/ps8/03_mollie.ps8.PaymentTestsOrdersAPI.js index 1155027e6..b3edf7ab5 100755 --- a/cypress/e2e/ps8/03_mollie.ps8.PaymentTestsOrdersAPI.js +++ b/cypress/e2e/ps8/03_mollie.ps8.PaymentTestsOrdersAPI.js @@ -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}) @@ -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]', () => { }) }) diff --git a/cypress/e2e/ps8/09_mollie.ps8.MobileViewportCheck.cy.js b/cypress/e2e/ps8/09_mollie.ps8.MobileViewportCheck.cy.js new file mode 100644 index 000000000..a07b4a4a0 --- /dev/null +++ b/cypress/e2e/ps8/09_mollie.ps8.MobileViewportCheck.cy.js @@ -0,0 +1,31 @@ +/// + +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') +}); +}) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index b135354a7..9d6b58571 100755 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -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()