diff --git a/.github/workflows/E2E_On_PR.yml b/.github/workflows/E2E_On_PR.yml
index fb30a677e..1778cdf9a 100755
--- a/.github/workflows/E2E_On_PR.yml
+++ b/.github/workflows/E2E_On_PR.yml
@@ -94,6 +94,7 @@ jobs:
export CYPRESS_TESTRAIL_DOMAIN='${{ secrets.TESTRAIL_DOMAIN }}'
export CYPRESS_TESTRAIL_USERNAME='${{ secrets.TESTRAIL_USERNAME }}'
export CYPRESS_TESTRAIL_PASSWORD='${{ secrets.TESTRAIL_PASSWORD }}'
+ cypress cache prune
npm install -D cypress
npm ci
npx cypress run --spec "${{ matrix.test_spec }}" --browser chrome
diff --git a/cypress/e2e/ps1785/01_mollie.ps1785.ModuleConfiguration.specs.js b/cypress/e2e/ps1785/01_mollie.ps1785.ModuleConfiguration.specs.js
index 7677fa560..ecbee88fc 100755
--- a/cypress/e2e/ps1785/01_mollie.ps1785.ModuleConfiguration.specs.js
+++ b/cypress/e2e/ps1785/01_mollie.ps1785.ModuleConfiguration.specs.js
@@ -1,36 +1,4 @@
///
-function prepareCookie()
- {
- const name = 'PrestaShop-';
-
- cy.request(
- {
- url: '/'
- }
- ).then((res) => {
-
- const cookies = res.requestHeaders.cookie.split(/; */);
-
- cookies.forEach(cookie => {
-
- const parts = cookie.split('=');
- const key = parts[0]
- const value = parts[1];
-
- if (key.startsWith(name)) {
- cy.setCookie(
- key,
- value,
- {
- sameSite: 'None',
- secure: true
- }
- );
- }
- });
-
- });
- }
//Caching the BO and FO session
const login = (MollieBOFOLoggingIn) => {
cy.session(MollieBOFOLoggingIn,() => {
diff --git a/cypress/e2e/ps1785/03_mollie.ps1785.PaymentTestsOrdersAPI.js b/cypress/e2e/ps1785/03_mollie.ps1785.PaymentTestsOrdersAPI.js
index 094c06773..a45ca1c2a 100755
--- a/cypress/e2e/ps1785/03_mollie.ps1785.PaymentTestsOrdersAPI.js
+++ b/cypress/e2e/ps1785/03_mollie.ps1785.PaymentTestsOrdersAPI.js
@@ -1,36 +1,4 @@
///
-function prepareCookie()
- {
- const name = 'PrestaShop-';
-
- cy.request(
- {
- url: '/'
- }
- ).then((res) => {
-
- const cookies = res.requestHeaders.cookie.split(/; */);
-
- cookies.forEach(cookie => {
-
- const parts = cookie.split('=');
- const key = parts[0]
- const value = parts[1];
-
- if (key.startsWith(name)) {
- cy.setCookie(
- key,
- value,
- {
- sameSite: 'None',
- secure: true
- }
- );
- }
- });
-
- });
- }
//Caching the BO and FO session
const login = (MollieBOFOLoggingIn) => {
cy.session(MollieBOFOLoggingIn,() => {
@@ -68,19 +36,7 @@ it.skip('C339342: 05 Vouchers Checkouting [Orders API]', () => { //possible bug
//Payment method choosing
cy.contains('Voucher').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('.grid-button-voucher-monizze-meal').click()
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
@@ -98,19 +54,7 @@ it('C339344: 07 Bancontact Checkouting [Orders API]', () => {
//Payment method choosing
cy.contains('Bancontact').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -123,19 +67,7 @@ it('C339346: 09 iDEAL Checkouting [Orders API]', () => {
//Payment method choosing
cy.contains('iDEAL').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('.payment-method-list > :nth-child(1)').click()
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
@@ -149,19 +81,7 @@ it('C339348: 11 Klarna Slice It Checkouting [Orders API]', () => {
//Payment method choosing
cy.contains('Ratenkauf.').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="authorized"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -174,19 +94,7 @@ it('C339350: 13 Klarna Pay Later Checkouting [Orders API]', () => {
//Payment method choosing
cy.contains('Rechnung.').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="authorized"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -199,19 +107,7 @@ it('C339352: 15 Klarna Pay Now Checkouting [Orders API]', () => {
//Payment method choosing
cy.contains('Pay now.').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="authorized"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -232,19 +128,7 @@ it('C339354: 17 Credit Card Checkouting [Orders API]', () => {
//Credit card inputing
cy.CreditCardFillingIframe()
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click({force: true})
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order').click({force: true})
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -254,19 +138,7 @@ it('C339355: 18 Check if customerId is passed during the 2nd payment using Singl
//Payment method choosing
cy.contains('Karte').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click({force: true})
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order').click({force: true})
cy.visit('/admin1/')
//Disabling the single-click - no need again
cy.OpeningModuleDashboardURL()
@@ -283,19 +155,7 @@ it('C339357: 20 IN3 Checkouting [Orders API]', () => {
// waiting for enabling IN3 payment
cy.contains('in3').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -348,19 +208,7 @@ it('C339361: 24 Paypal Checkouting [Orders API]', () => {
//Payment method choosing
cy.contains('PayPal').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -373,19 +221,7 @@ it('C339363: 26 SOFORT Checkouting [Orders API]', () => {
//Payment method choosing
cy.contains('SOFORT').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -410,19 +246,7 @@ it('C339365: 28 Przelewy24 Checkouting [Orders API]', () => {
//Payment method choosing
cy.contains('Przelewy24').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -435,44 +259,20 @@ it('C339367: 30 Giropay Checkouting [Orders API]', () => {
//Payment method choosing
cy.contains('giropay').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
});
it('C339368: 31 Giropay Order Shipping, Refunding [Orders API]', () => {
- cy.OrderRefundingShippingOrdersAPI()
+ cy.OrderRefundingShippingOrdersAPI()
})
it('C339369: 32 EPS Checkouting [Orders API]', () => {
cy.navigatingToThePayment()
//Payment method choosing
cy.contains('eps').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -485,19 +285,7 @@ it('C339371: 34 KBC/CBC Checkouting [Orders API]', () => {
//Payment method choosing
cy.contains('KBC/CBC').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('.grid-button-kbc-cbc').click()
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
@@ -511,19 +299,7 @@ it('C339373: 36 Belfius Checkouting [Orders API]', () => {
//Payment method choosing
cy.contains('Belfius').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -536,19 +312,7 @@ it('C339375: 38 Bank Transfer Checkouting [Orders API]', () => {
//Payment method choosing
cy.contains('Überweisung').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
//TODO - Welcome page?
@@ -563,19 +327,7 @@ it.skip('40 Gift Card Checkouting [Orders API]', () => {
//Payment method choosing
cy.contains('Gift cards').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('.grid-button-giftcard-yourgift').click()
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
@@ -599,7 +351,7 @@ it('C1765085: Billie Checkouting [Orders API]', () => {
cy.contains('Rechnungskauf').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
+ cy.contains('Place order')
cy.get('[value="authorized"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -618,7 +370,7 @@ it.skip('C1860460: Pay with Klarna UK Checkouting [Orders API]', () => { // curr
cy.contains('Pay with Klarna').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
+ cy.contains('Place order')
cy.get('[value="authorized"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
diff --git a/cypress/e2e/ps1785/05_mollie.ps1785.PaymentTestsPaymentsAPI.js b/cypress/e2e/ps1785/05_mollie.ps1785.PaymentTestsPaymentsAPI.js
index 6f686bf15..d5530de70 100755
--- a/cypress/e2e/ps1785/05_mollie.ps1785.PaymentTestsPaymentsAPI.js
+++ b/cypress/e2e/ps1785/05_mollie.ps1785.PaymentTestsPaymentsAPI.js
@@ -1,36 +1,4 @@
///
-function prepareCookie()
- {
- const name = 'PrestaShop-';
-
- cy.request(
- {
- url: '/'
- }
- ).then((res) => {
-
- const cookies = res.requestHeaders.cookie.split(/; */);
-
- cookies.forEach(cookie => {
-
- const parts = cookie.split('=');
- const key = parts[0]
- const value = parts[1];
-
- if (key.startsWith(name)) {
- cy.setCookie(
- key,
- value,
- {
- sameSite: 'None',
- secure: true
- }
- );
- }
- });
-
- });
- }
//Caching the BO and FO session
const login = (MollieBOFOLoggingIn) => {
cy.session(MollieBOFOLoggingIn,() => {
@@ -73,19 +41,7 @@ it('C339379: 44 Bancontact Checkouting [Payments API]', () => {
//Payment method choosing
cy.contains('Bancontact').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -98,19 +54,7 @@ it('C339381: 46 iDEAL Checkouting [Payments API]', () => {
//Payment method choosing
cy.contains('iDEAL').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+cy.contains('Place order')
cy.get('.payment-method-list > :nth-child(1)').click()
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
@@ -126,19 +70,7 @@ it('C339383: 48 Credit Card Checkouting [Payments API]', () => {
//Credit card inputing
cy.CreditCardFillingIframe()
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -182,19 +114,7 @@ it('C339385: 50 Credit Card Guest Checkouting [Payments API]', () => {
//Credit card inputing
cy.CreditCardFillingIframe()
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -242,19 +162,7 @@ it('C339387: 52 Paypal Checkouting [Payments API]', () => {
//Payment method choosing
cy.contains('PayPal').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -274,19 +182,7 @@ it('C339389: 54 SOFORT Checkouting [Payments API]', () => {
//Payment method choosing
cy.contains('SOFORT').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -302,19 +198,7 @@ it('C339391: 56 Przelewy24 Checkouting [Payments API]', () => {
//Payment method choosing
cy.contains('Przelewy24').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('.input-float > input').type('testing@testing.com')
cy.get('[class="button form__button"]').click()
cy.get('[value="paid"]').click()
@@ -329,19 +213,7 @@ it('C339393: 58 Giropay Checkouting [Payments API]', () => {
//Payment method choosing
cy.contains('giropay').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -354,19 +226,7 @@ it('C339395: 60 EPS Checkouting [Payments API]', () => {
//Payment method choosing
cy.contains('eps').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -379,19 +239,7 @@ it('C339397: 62 KBC/CBC Checkouting [Payments API]', () => {
//Payment method choosing
cy.contains('KBC/CBC').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('.grid-button-kbc-cbc').click()
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
@@ -405,19 +253,7 @@ it('C339399: 64 Belfius Checkouting [Payments API]', () => {
//Payment method choosing
cy.contains('Belfius').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
@@ -436,19 +272,7 @@ it('C339401: 66 Bank Transfer Checkouting [Payments API]', () => {
//Payment method choosing
cy.contains('Bank transfer').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
- cy.get('.ps-shown-by-js > .btn').click()
- cy.setCookie(
- 'SESSIONID',
- "cypress-dummy-value",
- {
- domain: '.www.mollie.com',
- sameSite: 'None',
- secure: true,
- httpOnly: true
- }
- ); // reload current page to activate cookie
- cy.reload();
+ cy.contains('Place order')
cy.get('[value="paid"]').click()
cy.get('[class="button form__button"]').click()
cy.contains('Welcome back').should('be.visible')
@@ -466,7 +290,6 @@ it.skip('C1860462: Pay with Klarna UK Checkouting [Payments API]', () => { // cu
//Payment method choosing
cy.contains('Pay with Klarna').click({force:true})
cy.get('.condition-label > .js-terms').click({force:true})
- prepareCookie();
cy.get('.ps-shown-by-js > .btn').click()
cy.get('[value="authorized"]').click()
cy.get('[class="button form__button"]').click()