Skip to content

Commit

Permalink
small e2e improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonasB88 committed Oct 2, 2023
1 parent 14e088a commit 514a2dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/e2e/ps1785/03_mollie.ps1785.PaymentTests.js
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('C339343: 06 Vouchers Order BO Refunding, Shipping (Paid part only) [Orders API]', () => {
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
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
3 changes: 3 additions & 0 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ Cypress.Commands.add("ConfPaymentsAPI1784", () => {
Cypress.Commands.add("OrderRefundingShippingOrdersAPI", () => {
cy.visit('/admin1/index.php?controller=AdminOrders')
cy.get(':nth-child(1) > .column-payment').click()
cy.scrollTo('bottom')
//Refunding dropdown in React
cy.get('.btn-group-action > .btn-group > .dropdown-toggle').eq(0).click()
cy.get('[role="button"]').eq(2).click()
Expand All @@ -484,6 +485,7 @@ Cypress.Commands.add("OrderRefundingShippingOrdersAPI", () => {
Cypress.Commands.add("OrderShippingRefundingOrdersAPI", () => {
cy.visit('/admin1/index.php?controller=AdminOrders')
cy.get(':nth-child(1) > .column-payment').click()
cy.scrollTo('bottom')
//Shipping button in React
cy.get('.btn-group > [title=""]').eq(0).click()
cy.get('[class="swal-button swal-button--confirm"]').click()
Expand All @@ -503,6 +505,7 @@ Cypress.Commands.add("OrderShippingRefundingOrdersAPI", () => {
Cypress.Commands.add("OrderRefundingPartialPaymentsAPI", () => {
cy.visit('/admin1/index.php?controller=AdminOrders')
cy.get(':nth-child(1) > .column-payment').click()
cy.scrollTo('bottom')
cy.get('#mollie_order > :nth-child(1)').should('exist')
cy.get('.form-inline > :nth-child(1) > .btn').should('exist')
cy.get('.input-group-btn > .btn').should('exist')
Expand Down

0 comments on commit 514a2dd

Please sign in to comment.