From 104faf6e5563836c262f2ea8ce9c3c33b2149333 Mon Sep 17 00:00:00 2001 From: mike10ca Date: Tue, 31 Oct 2023 11:30:28 +0100 Subject: [PATCH] Fix safe apps tests --- cypress/e2e/safe-apps/apps_list.cy.js | 7 ++----- cypress/e2e/safe-apps/safe_permissions.cy.js | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cypress/e2e/safe-apps/apps_list.cy.js b/cypress/e2e/safe-apps/apps_list.cy.js index c14f41bb38..4081b813cf 100644 --- a/cypress/e2e/safe-apps/apps_list.cy.js +++ b/cypress/e2e/safe-apps/apps_list.cy.js @@ -9,7 +9,7 @@ describe('Safe Apps tests', () => { beforeEach(() => { cy.clearLocalStorage() cy.visit(constants.SEPOLIA_TEST_SAFE_4 + constants.appsUrl, { failOnStatusCode: false }) - main.acceptCookies() + main.acceptCookies(1) }) it('Verify app list can be filtered by app name [C56130]', () => { @@ -32,15 +32,12 @@ describe('Safe Apps tests', () => { it('Verify apps can be pinned [C56133]', () => { safeapps.clearSearchAppInput() - safeapps.pinApp(safeapps.pinWalletConnectStr) safeapps.pinApp(safeapps.transactionBuilderStr) - safeapps.verifyPinnedAppCount(2) + safeapps.verifyPinnedAppCount(1) }) it('Verify apps can be unpinned [C56134]', () => { - safeapps.pinApp(safeapps.pinWalletConnectStr) safeapps.pinApp(safeapps.transactionBuilderStr) - safeapps.pinApp(safeapps.pinWalletConnectStr, false) safeapps.pinApp(safeapps.transactionBuilderStr, false) safeapps.verifyPinnedAppCount(0) }) diff --git a/cypress/e2e/safe-apps/safe_permissions.cy.js b/cypress/e2e/safe-apps/safe_permissions.cy.js index af06401a08..b93a135b90 100644 --- a/cypress/e2e/safe-apps/safe_permissions.cy.js +++ b/cypress/e2e/safe-apps/safe_permissions.cy.js @@ -19,7 +19,7 @@ describe('Safe permissions system tests', () => { it('Verify that requesting permissions with wallet_requestPermissions shows the permissions prompt and return the permissions on accept [C56150]', () => { cy.visitSafeApp(constants.testAppUrl + constants.requestPermissionsUrl) - main.acceptCookies() + main.acceptCookies(1) safeapps.clickOnContinueBtn() safeapps.verifyWarningDefaultAppMsgIsDisplayed() safeapps.clickOnContinueBtn()