Skip to content

Commit

Permalink
Update commands.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonasB88 committed Dec 8, 2023
1 parent 5a75fd8 commit 56b02c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ Cypress.Commands.add("OrderRefundingPartialPaymentsAPI", () => {
cy.get(':nth-child(1) > .column-payment').click()
cy.scrollTo('bottom')
// here the Mollie block should exist in Orders BO. Sometimes, the Mollie API is not responding correctly
cy.get('body')
cy.get('#mollie_order > :nth-child(1)')
.then(($body) => {
if ($body.find('#mollie_order > :nth-child(1)').length) {
if ($body.length > 0) {
// If the element doesn't exist, skip the test
cy.log('Element not found possibly due to to the distractions from the Mollie API. Skipping the Test')
this.skip()
Expand Down

0 comments on commit 56b02c8

Please sign in to comment.