Skip to content

Commit

Permalink
adding PS8 Billie fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonasB88 committed Oct 23, 2023
1 parent dfed2da commit 8aa7f55
Show file tree
Hide file tree
Showing 4 changed files with 2,040 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ it('C339342: 05 Vouchers Checkouting [Orders API]', () => {
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
})
it.skip('C339343: 06 Vouchers Order BO Refunding, Shipping (Paid part only) [Orders API]', () => { //skipping, because of flaky behavior of this payment, sometimes the Mollie div is shown in Orders BO, sometimes not
it('C339343: 06 Vouchers Order BO Refunding, Shipping (Paid part only) [Orders API]', () => { //skipping, because of flaky behavior of this payment, sometimes the Mollie div is shown in Orders BO, sometimes not
cy.OrderRefundingShippingOrdersAPI()
cy.get('[class="card-body"]').find('[class="alert alert-warning"]').should('exist') //additional checking if the warning alert for vouchers exist
})
Expand Down
7 changes: 4 additions & 3 deletions cypress/e2e/ps8/03_mollie.ps8.PaymentTestsOrdersAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -670,9 +670,10 @@ it.skip('40 Gift Card Checkouting [Orders API]', () => {
it.skip('41 Gift Card Order Shipping, Refunding [Orders API]', () => {
cy.OrderRefundingShippingOrdersAPI()
})
it('C1765085: Billie Checkouting [Orders API]', () => {
it.only('C1765085: Billie Checkouting [Orders API]', () => {
// enabling the B2B functionality in PS
cy.visit('/admin1/')
cy.visit('/en/index.php?controller=history')
cy.get('a').click()
cy.contains('Reorder').click()
cy.contains('DE').click()
//Billing country LT, DE etc.
Expand All @@ -687,7 +688,7 @@ it('C1765085: Billie Checkouting [Orders API]', () => {
cy.get('[class="button form__button"]').click()
cy.get('#content-hook_order_confirmation > .card-block').should('be.visible')
});
it('C1765086: Billie Order Shipping, Refunding [Orders API]', () => {
it.only('C1765086: Billie Order Shipping, Refunding [Orders API]', () => {
cy.OrderShippingRefundingOrdersAPI()
})
})
8 changes: 8 additions & 0 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,14 @@ Cypress.Commands.add("ConfOrdersAPI", () => {
cy.get('[name="MOLLIE_METHOD_SURCHARGE_FIXED_AMOUNT_in3"]').clear({force: true}).type('11', {force: true})
cy.get('[name="MOLLIE_METHOD_SURCHARGE_PERCENTAGE_in3"]').clear({force: true}).type('22', {force: true})
cy.get('[name="MOLLIE_METHOD_SURCHARGE_LIMIT_in3"]').clear({force: true}).type('33', {force: true})
//billie
cy.get('[name="MOLLIE_METHOD_ENABLED_billie"]').select('Yes', {force: true})
cy.get('[name="MOLLIE_METHOD_API_billie"]').select('Orders API', {force: true})
cy.get('[name="MOLLIE_METHOD_DESCRIPTION_billie"]').clear({force: true}).type('text 123 !@#$%^&*', {force: true})
cy.get('[name="MOLLIE_METHOD_SURCHARGE_TYPE_billie"]').select('3', {force: true})
cy.get('[name="MOLLIE_METHOD_SURCHARGE_FIXED_AMOUNT_billie"]').clear({force: true}).type('11', {force: true})
cy.get('[name="MOLLIE_METHOD_SURCHARGE_PERCENTAGE_billie"]').clear({force: true}).type('22', {force: true})
cy.get('[name="MOLLIE_METHOD_SURCHARGE_LIMIT_billie"]').clear({force: true}).type('33', {force: true})
})
Cypress.Commands.add("ConfPaymentsAPI", () => {
//giropay
Expand Down
Loading

0 comments on commit 8aa7f55

Please sign in to comment.