From 878e68d697dc0dd6f5c3f8478370372a81e6b074 Mon Sep 17 00:00:00 2001 From: Dominik Riemer Date: Tue, 17 Sep 2024 16:21:51 +0200 Subject: [PATCH] fix: Modify navigation icon length in cypress tests (#3234) --- ui/cypress/tests/userManagement/testGroupManagement.spec.ts | 2 +- ui/cypress/tests/userManagement/testUserRolePipeline.spec.ts | 2 +- ui/deployment/modules.yml | 2 +- ui/src/app/configuration/configuration-tabs.service.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/cypress/tests/userManagement/testGroupManagement.spec.ts b/ui/cypress/tests/userManagement/testGroupManagement.spec.ts index ef1f45562c..2f4de9e7bf 100644 --- a/ui/cypress/tests/userManagement/testGroupManagement.spec.ts +++ b/ui/cypress/tests/userManagement/testGroupManagement.spec.ts @@ -123,7 +123,7 @@ describe('Test Group Management for Pipelines', () => { cy.dataCy('navigation-icon', { timeout: 10000 }).should( 'have.length', - 2, + 3, ); // Check if pipeline is invisible to user2 diff --git a/ui/cypress/tests/userManagement/testUserRolePipeline.spec.ts b/ui/cypress/tests/userManagement/testUserRolePipeline.spec.ts index 6d4a9b9cb7..a992334de8 100644 --- a/ui/cypress/tests/userManagement/testUserRolePipeline.spec.ts +++ b/ui/cypress/tests/userManagement/testUserRolePipeline.spec.ts @@ -83,7 +83,7 @@ describe('Test User Roles for Pipelines', () => { cy.dataCy('navigation-icon', { timeout: 10000 }).should( 'have.length', - 2, + 3, ); PipelineUtils.goToPipelines(); diff --git a/ui/deployment/modules.yml b/ui/deployment/modules.yml index 44bf959acf..b9c929780a 100644 --- a/ui/deployment/modules.yml +++ b/ui/deployment/modules.yml @@ -83,7 +83,7 @@ spConfiguration: description: 'In the configuration module, basic StreamPipes settings and services can be configured.' icon: 'settings' pageNames: 'PageName.SETTINGS' - privileges: '[UserPrivilege.PRIVILEGE_WRITE_ASSETS, UserPrivilege.PRIVILEGE_WRITE_LABELS, UserPrivilege.PRIVILEGE_READ_FILES, UserPrivilege.PRIVILEGE_WRITE_FILES]' + privileges: '[UserPrivilege.PRIVILEGE_WRITE_ASSETS, UserPrivilege.PRIVILEGE_WRITE_LABELS, UserPrivilege.PRIVILEGE_WRITE_FILES]' showStatusBox: false spAppOverview: componentImport: False diff --git a/ui/src/app/configuration/configuration-tabs.service.ts b/ui/src/app/configuration/configuration-tabs.service.ts index dc1187b0aa..fa2a384671 100644 --- a/ui/src/app/configuration/configuration-tabs.service.ts +++ b/ui/src/app/configuration/configuration-tabs.service.ts @@ -57,7 +57,7 @@ export class SpConfigurationTabsService { itemId: 'files', itemTitle: 'Files', itemLink: ['configuration', 'files'], - roles: ['PRIVILEGE_READ_FILES', 'PRIVILEGE_WRITE_FILES'], + roles: ['PRIVILEGE_WRITE_FILES'], }, { itemId: 'labels',