From e8ac38edd16a0a8d0d63493bacf5851d239d1644 Mon Sep 17 00:00:00 2001 From: akash-codemonk <67054171+akash-codemonk@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:32:51 +0530 Subject: [PATCH] chore: fix airgap explorer test (#27540) In the test we were looking for the add js libraries button, but we cannot add js libraries on airgap. So skipping add libraries from the assertion list. --- .../e2e/Regression/ClientSide/ExplorerTests/Pin_spec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/client/cypress/e2e/Regression/ClientSide/ExplorerTests/Pin_spec.js b/app/client/cypress/e2e/Regression/ClientSide/ExplorerTests/Pin_spec.js index 87778b76b6..4f5131eeb8 100644 --- a/app/client/cypress/e2e/Regression/ClientSide/ExplorerTests/Pin_spec.js +++ b/app/client/cypress/e2e/Regression/ClientSide/ExplorerTests/Pin_spec.js @@ -109,7 +109,10 @@ describe("Entity explorer tests related to pinning and unpinning", function () { function () { agHelper.AssertElementVisibility(entityExplorer._entityExplorer); entityExplorer.PinUnpinEntityExplorer(true); - const menu = Object.keys(ExplorerMenu); + // We cannot add libraries on airgap + const menu = Object.keys(ExplorerMenu).filter( + (menu) => menu !== ExplorerMenu.ADD_LIBRARY, + ); Cypress._.times(menu.length - 1, (index) => { OpenExplorerMenu(menu[index]);