diff --git a/cypress/e2e/ps1785/03_mollie.ps1785.PaymentTestsOrdersAPI.js b/cypress/e2e/ps1785/03_mollie.ps1785.PaymentTestsOrdersAPI.js index 9d69131bc..7c4d5d3ab 100755 --- a/cypress/e2e/ps1785/03_mollie.ps1785.PaymentTestsOrdersAPI.js +++ b/cypress/e2e/ps1785/03_mollie.ps1785.PaymentTestsOrdersAPI.js @@ -365,4 +365,22 @@ it('TWINT Checkouting [Orders API]', () => { it('TWINT Order Shipping, Refunding [Orders API]', () => { cy.OrderShippingRefundingOrdersAPI() }) +it('C3006826: Alma Checkouting [Orders API]', () => { + cy.visit('/en/order-history') + cy.contains('Reorder').click() + cy.contains('DE').click({force:true}) + //Billing country LT, DE etc. + cy.get('.clearfix > .btn').click() + cy.get('#js-delivery > .continue').click() + //Payment method choosing + cy.contains('Alma').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') +}); +it('C3006827: Alma Order Shipping, Refunding [Orders API]', () => { + cy.OrderShippingRefundingOrdersAPI() +}) }) diff --git a/cypress/e2e/ps1785/05_mollie.ps1785.PaymentTestsPaymentsAPI.js b/cypress/e2e/ps1785/05_mollie.ps1785.PaymentTestsPaymentsAPI.js index a78b25544..2df6ce713 100755 --- a/cypress/e2e/ps1785/05_mollie.ps1785.PaymentTestsPaymentsAPI.js +++ b/cypress/e2e/ps1785/05_mollie.ps1785.PaymentTestsPaymentsAPI.js @@ -279,4 +279,17 @@ it('TWINT Checkouting [Payments API]', () => { it('TWINT Order Shipping, Refunding [Payments API]', () => { cy.OrderRefundingPartialPaymentsAPI() }) +it('C3006827: Alma Checkouting [Payments API]', () => { + cy.navigatingToThePaymentPS8() + //Payment method choosing + cy.contains('Alma').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') +}); +it('C3006826: Alma BO Refunding, Partial Refunding [Payments API]', () => { + cy.OrderRefundingPartialPaymentsAPI() +}) }) diff --git a/cypress/e2e/ps8/01_mollie.ps8.ModuleConfiguration.specs.js b/cypress/e2e/ps8/01_mollie.ps8.ModuleConfiguration.specs.js index fe683dc94..ee139ce78 100755 --- a/cypress/e2e/ps8/01_mollie.ps8.ModuleConfiguration.specs.js +++ b/cypress/e2e/ps8/01_mollie.ps8.ModuleConfiguration.specs.js @@ -27,8 +27,8 @@ it('C339305: Connecting test API successsfully', () => { .then((text) => { cy.log(text) // Showing and asserting the text that loaded, to ensure the BO is loaded, not crashed with PHP fatals etc. }) - cy.iframe('[id^="uid_"]').find('button').click() // Cloudsync validation - cy.wait(15000) // Waiting for validation to process until the end + // cy.iframe('[id^="uid_"]').find('button').click() // Cloudsync validation + // cy.wait(15000) // Waiting for validation to process until the end cy.get('#MOLLIE_ACCOUNT_SWITCH_on').click({force:true}) cy.get('#MOLLIE_API_KEY_TEST').type((Cypress.env('MOLLIE_TEST_API_KEY')),{delay: 0, log: false}) cy.get('#module_form_submit_btn').click() diff --git a/cypress/e2e/ps8/03_mollie.ps8.PaymentTestsOrdersAPI.js b/cypress/e2e/ps8/03_mollie.ps8.PaymentTestsOrdersAPI.js index c6964ffa2..5926f19fc 100755 --- a/cypress/e2e/ps8/03_mollie.ps8.PaymentTestsOrdersAPI.js +++ b/cypress/e2e/ps8/03_mollie.ps8.PaymentTestsOrdersAPI.js @@ -330,4 +330,22 @@ it('C3006613: Bancomat Checkouting [Orders API]', () => { it('C3006614: Bancomat Order Shipping, Refunding [Orders API]', () => { cy.OrderShippingRefundingOrdersAPI() }) +it('C3006826: Alma Checkouting [Orders API]', () => { + cy.visit('/en/order-history') + cy.contains('Reorder').click() + cy.contains('DE').click({force:true}) + //Billing country LT, DE etc. + cy.get('.clearfix > .btn').click() + cy.get('#js-delivery > .continue').click() + //Payment method choosing + cy.contains('Alma').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') +}); +it('C3006827: Alma Order Shipping, Refunding [Orders API]', () => { + cy.OrderShippingRefundingOrdersAPI() +}) }) diff --git a/cypress/e2e/ps8/05_mollie.ps8.PaymentTestsPaymentsAPI.js b/cypress/e2e/ps8/05_mollie.ps8.PaymentTestsPaymentsAPI.js index 2aa23bbc0..da295dfa2 100755 --- a/cypress/e2e/ps8/05_mollie.ps8.PaymentTestsPaymentsAPI.js +++ b/cypress/e2e/ps8/05_mollie.ps8.PaymentTestsPaymentsAPI.js @@ -234,4 +234,17 @@ it('C3006615: Bancomat Checkouting [Payments API]', () => { it('C3006616: Bancomat BO Refunding, Partial Refunding [Payments API]', () => { cy.OrderRefundingPartialPaymentsAPI() }) +it('C3006826: Alma Checkouting [Payments API]', () => { + cy.navigatingToThePaymentPS8() + //Payment method choosing + cy.contains('Alma').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') +}); +it('C3006827: Alma BO Refunding, Partial Refunding [Payments API]', () => { + cy.OrderRefundingPartialPaymentsAPI() +}) }) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index c398bce51..83f8aa1a1 100755 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -42,7 +42,7 @@ import 'cypress-iframe'; // Cypress.Commands.add("login", (email, password) => { ... }) Cypress.Commands.add("ConfOrdersAPI1784", () => { - const paymentMethods = ["applepay", "ideal", "creditcard", "in3", "klarnapaylater", "klarnapaynow", "klarnasliceit", "paypal", "banktransfer", "bancontact", "eps", "przelewy24", "kbc", "belfius", "voucher", "directdebit", "billie", "klarna", "twint", "blik", "bancomatpay"]; + const paymentMethods = ["applepay", "ideal", "creditcard", "in3", "klarnapaylater", "klarnapaynow", "klarnasliceit", "paypal", "banktransfer", "bancontact", "eps", "przelewy24", "kbc", "belfius", "voucher", "directdebit", "billie", "klarna", "twint", "blik", "bancomatpay", "alma"]; // Iterate through the paymentMethods array using forEach paymentMethods.forEach(method => { @@ -59,7 +59,7 @@ Cypress.Commands.add("ConfOrdersAPI1784", () => { }) Cypress.Commands.add("ConfPaymentsAPI1784", () => { - const paymentMethods = ["eps", "przelewy24", "kbc", "belfius", "bancontact", "creditcard", "ideal", "banktransfer", "paypal", "applepay", "twint", "blik", "bancomatpay"]; + const paymentMethods = ["eps", "przelewy24", "kbc", "belfius", "bancontact", "creditcard", "ideal", "banktransfer", "paypal", "applepay", "twint", "blik", "bancomatpay", "alma"]; // Iterate through the paymentMethods array using forEach paymentMethods.forEach(method => { diff --git a/package-lock.json b/package-lock.json index a89dbdc48..7e7a0d830 100755 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "devDependencies": { "@cypress/vue": "^6.0.0", "@frsource/cypress-plugin-visual-regression-diff": "^3.3.10", - "cypress": "^13.8.1", + "cypress": "^13.9.0", "cypress-fail-fast": "^7.0.3", "cypress-iframe": "^1.0.1", "cypress-shadow-dom": "^1.4.1", @@ -984,9 +984,9 @@ "peer": true }, "node_modules/cypress": { - "version": "13.8.1", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-13.8.1.tgz", - "integrity": "sha512-Uk6ovhRbTg6FmXjeZW/TkbRM07KPtvM5gah1BIMp4Y2s+i/NMxgaLw0+PbYTOdw1+egE0FP3mWRiGcRkjjmhzA==", + "version": "13.9.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-13.9.0.tgz", + "integrity": "sha512-atNjmYfHsvTuCaxTxLZr9xGoHz53LLui3266WWxXJHY7+N6OdwJdg/feEa3T+buez9dmUXHT1izCOklqG82uCQ==", "dev": true, "hasInstallScript": true, "dependencies": { diff --git a/package.json b/package.json index 66bf1c70c..d13d14a15 100755 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "devDependencies": { "@cypress/vue": "^6.0.0", "@frsource/cypress-plugin-visual-regression-diff": "^3.3.10", - "cypress": "^13.8.1", + "cypress": "^13.9.0", "cypress-fail-fast": "^7.0.3", "cypress-iframe": "^1.0.1", "cypress-shadow-dom": "^1.4.1",