Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
10xSebastian committed Oct 15, 2023
1 parent e58b679 commit 88e998a
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions cypress/e2e/Payment/track.js
Original file line number Diff line number Diff line change
Expand Up @@ -900,12 +900,7 @@ describe('Payment Widget: track', () => {
forward_to: '/somethingelse'
}
}))
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.Card', 'Payment validated').then(()=>{
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.Card', 'Payment validated').find('.Checkmark')
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.ButtonPrimary:not(.disabled)', 'Continue').should('exist')
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.ButtonPrimary:not(.disabled)', 'Continue').invoke('attr', 'href').should('include', '/somethingelse')
cy.location('href').should('include', '/somethingelse')
})
cy.location('href').should('include', '/somethingelse')
})
})
})
Expand Down Expand Up @@ -1494,12 +1489,7 @@ describe('Payment Widget: track', () => {
cy.get('.ReactShadowDOMOutsideContainer').shadow().find('.Card .Checkmark')
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.Card', 'Transaction confirmed').invoke('attr', 'href').should('include', 'https://etherscan.io/tx/')
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.ButtonPrimary.disabled', 'Continue').should('exist').then(()=>{
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.Card', 'Payment validated').then(()=>{
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.Card', 'Payment validated').find('.Checkmark')
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.ButtonPrimary:not(.disabled)', 'Continue').should('exist')
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.ButtonPrimary:not(.disabled)', 'Continue').invoke('attr', 'href').should('include', '/somethingelse')
cy.location('href').should('include', '/somethingelse')
})
cy.location('href').should('include', '/somethingelse')
})
})
})
Expand Down Expand Up @@ -1621,12 +1611,7 @@ describe('Payment Widget: track', () => {
cy.get('.ReactShadowDOMOutsideContainer').shadow().find('.Card .Checkmark')
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.Card', 'Transaction confirmed').invoke('attr', 'href').should('include', 'https://etherscan.io/tx/')
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.ButtonPrimary.disabled', 'Continue').should('exist').then(()=>{
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.Card', 'Payment validated').then(()=>{
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.Card', 'Payment validated').find('.Checkmark')
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.ButtonPrimary:not(.disabled)', 'Continue').should('exist')
cy.get('.ReactShadowDOMOutsideContainer').shadow().contains('.ButtonPrimary:not(.disabled)', 'Continue').invoke('attr', 'href').should('include', '/somethingelse')
cy.location('href').should('include', '/somethingelse')
})
cy.location('href').should('include', '/somethingelse')
})
})
})
Expand Down

0 comments on commit 88e998a

Please sign in to comment.