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.
This commit is contained in:
akash-codemonk 2023-09-21 15:32:51 +05:30 committed by GitHub
parent 2706298a11
commit e8ac38edd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]);