From f2b850c30c5f0d8f3e5cc6d9c0dee6e115364d39 Mon Sep 17 00:00:00 2001 From: mike10ca Date: Tue, 31 Oct 2023 09:41:19 +0100 Subject: [PATCH] Fix tests --- cypress/e2e/pages/owners.pages.js | 2 +- cypress/e2e/smoke/create_tx.cy.js | 2 +- cypress/e2e/smoke/import_export_data.cy.js | 2 +- cypress/e2e/smoke/tx_history.cy.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress/e2e/pages/owners.pages.js b/cypress/e2e/pages/owners.pages.js index 7799f73854..56d44ce0fa 100644 --- a/cypress/e2e/pages/owners.pages.js +++ b/cypress/e2e/pages/owners.pages.js @@ -6,7 +6,7 @@ const tooltipLabel = (label) => `span[aria-label="${label}"]` const removeOwnerBtn = 'span[data-track="settings: Remove owner"] > span > button' const replaceOwnerBtn = 'span[data-track="settings: Replace owner"] > span > button' const addOwnerBtn = 'span[data-track="settings: Add owner"]' -const tooltip = 'div[role="tooltip"]' +const tooltip = 'div[id=":rf:"]' const expandMoreIcon = 'svg[data-testid="ExpandMoreIcon"]' const sentinelStart = 'div[data-testid="sentinelStart"]' const newOwnerName = 'input[name="newOwner.name"]' diff --git a/cypress/e2e/smoke/create_tx.cy.js b/cypress/e2e/smoke/create_tx.cy.js index a96db26acc..b1a5e1ac1a 100644 --- a/cypress/e2e/smoke/create_tx.cy.js +++ b/cypress/e2e/smoke/create_tx.cy.js @@ -9,7 +9,7 @@ describe('Create transactions tests', () => { before(() => { cy.clearLocalStorage() cy.visit(constants.BALANCE_URL + constants.SEPOLIA_TEST_SAFE_5) - main.acceptCookies() + main.acceptCookies(2) }) it('Verify a new send token transaction can be created [C56104]', () => { diff --git a/cypress/e2e/smoke/import_export_data.cy.js b/cypress/e2e/smoke/import_export_data.cy.js index 1c41ff5ab8..de7e8f3881 100644 --- a/cypress/e2e/smoke/import_export_data.cy.js +++ b/cypress/e2e/smoke/import_export_data.cy.js @@ -24,6 +24,7 @@ describe('Import Export Data tests', () => { }) it('Verify address book imported data [C56112]', () => { + main.acceptCookies(1) file.clickOnAddressBookBtn() file.verifyImportedAddressBookData() }) @@ -32,7 +33,6 @@ describe('Import Export Data tests', () => { const appNames = ['Transaction Builder'] file.clickOnAppsBtn() - file.clickOnBookmarkedAppsBtn() file.verifyAppsAreVisible(appNames) }) diff --git a/cypress/e2e/smoke/tx_history.cy.js b/cypress/e2e/smoke/tx_history.cy.js index b0b7c18c54..dc2fd67b26 100644 --- a/cypress/e2e/smoke/tx_history.cy.js +++ b/cypress/e2e/smoke/tx_history.cy.js @@ -19,7 +19,7 @@ describe('Transaction history tests', () => { // So that tests that rely on this feature don't randomly fail cy.window().then((win) => win.localStorage.setItem('SAFE_v2__AB_human-readable', true)) - main.acceptCookies() + main.acceptCookies(1) }) //Skipping this due to test data creation @@ -129,7 +129,7 @@ describe('Transaction history tests', () => { }) it('Verify transaction can be expanded/collapsed [C56129]', () => { - createTx.clickOnTransactionExpandableItem('Oct 9, 2023', () => { + createTx.clickOnTransactionExpandableItem('Oct 20, 2023', () => { createTx.verifyTransactionStrExists(str1) createTx.verifyTransactionStrExists(str2) createTx.verifyTransactionStrExists(str3)