Skip to content

Commit

Permalink
update integration test selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
TMansur5 committed Jan 2, 2025
1 parent 96ee94b commit 9660938
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/integration-test/cypress/e2e/PageObjects/objects.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ class Order {
cy.get("#toplevel_page_woocommerce > ul > li:nth-child(3) > a").click()
cy.get('tr').eq(1).click()
cy.get('#openCaptureModal').click().wait(2000)
cy.get('.lh-copy > :nth-child(1) > :nth-child(7) > .form-control').click().clear().type('0').click()
cy.get('#altapay_capture').click()
cy.get('.lh-copy > :nth-child(1) > :nth-child(7) > .form-control').click().clear().type('0').wait(3000)
cy.get('#altapay_capture').click().wait(3000)

}

refund() {
Expand Down Expand Up @@ -162,7 +163,7 @@ class Order {
cy.get("#toplevel_page_woocommerce > ul > li:nth-child(3) > a").click()
cy.get('tr').eq(1).click()
cy.get('#openRefundModal').click().wait(3000)
cy.get('#TB_ajaxContent > [style="overflow-x:auto;"] > .responsive-table > .w-100 > :nth-child(3) > :nth-child(1) > :nth-child(7) > .form-control').click().clear().type('0').click()
cy.get('#TB_ajaxContent > [style="overflow-x:auto;"] > .responsive-table > .w-100 > tbody > :nth-child(1) > :nth-child(7) > .form-control').click().clear().type('0')
cy.get('#altapay_refund').click().wait(2000)


Expand Down

0 comments on commit 9660938

Please sign in to comment.