Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mike10ca committed Dec 2, 2024
1 parent df061aa commit b2685e5
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cypress/e2e/pages/main.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,15 @@ export function acceptCookies(index = 0) {
})
}

export function acceptCookies2() {
cy.get('body').then(($body) => {
if ($body.find('button:contains(' + acceptSelection + ')').length > 0) {
cy.contains('button', acceptSelection).click()
cy.wait(500)
}
})
}

export function verifyOwnerConnected(prefix = 'sep:') {
cy.get(connectedOwnerBlock).should('contain', prefix)
}
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/smoke/add_owner.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('[SMOKE] Add Owners tests', () => {
beforeEach(() => {
cy.visit(constants.setupUrl + staticSafes.SEP_STATIC_SAFE_4)
main.waitForHistoryCallToComplete()
main.acceptCookies2()
main.verifyElementsExist([navigation.setupSection])
})

Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/smoke/address_book.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ describe('[SMOKE] Address book tests', () => {
beforeEach(() => {
cy.visit(constants.addressBookUrl + staticSafes.SEP_STATIC_SAFE_4)
main.waitForHistoryCallToComplete()
main.acceptCookies2()
})

it('[SMOKE] Verify entry can be added', () => {
Expand Down
2 changes: 2 additions & 0 deletions cypress/e2e/smoke/assets.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ describe('[SMOKE] Assets tests', () => {

beforeEach(() => {
cy.visit(constants.BALANCE_URL + staticSafes.SEP_STATIC_SAFE_2)
cy.wait(2000)
main.acceptCookies2()
})

it('[SMOKE] Verify that the native token is visible', () => {
Expand Down
2 changes: 2 additions & 0 deletions cypress/e2e/smoke/batch_tx.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ describe('[SMOKE] Batch transaction tests', { defaultCommandTimeout: 30000 }, ()

beforeEach(() => {
cy.visit(constants.BALANCE_URL + staticSafes.SEP_STATIC_SAFE_2)
cy.wait(2000)
main.acceptCookies2()
})

it('[SMOKE] Verify empty batch list can be opened', () => {
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/smoke/create_tx_2.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ describe('[SMOKE] Create transactions tests 2', () => {
beforeEach(() => {
cy.visit(constants.BALANCE_URL + staticSafes.SEP_STATIC_SAFE_6)
wallet.connectSigner(signer)
main.acceptCookies2()
createtx.clickOnNewtransactionBtn()
createtx.clickOnSendTokensBtn()
})
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/smoke/load_safe.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe('[SMOKE] Load Safe tests', () => {
beforeEach(() => {
cy.visit(constants.loadNewSafeSepoliaUrl)
cy.wait(2000)
main.acceptCookies2()
})

it('[SMOKE] Verify a network can be selected in the Safe', () => {
Expand Down

0 comments on commit b2685e5

Please sign in to comment.