From 4181d4dedc0c2ea1c8ab14736995e101f0a831b2 Mon Sep 17 00:00:00 2001 From: Thorben Schmitt Date: Thu, 13 Feb 2025 16:05:47 +0100 Subject: [PATCH] add permission feature --- .../features/@permissions/view-policy-violation.feature | 2 +- .../view-policy-violation_x_policy-violation-analysis.feature | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/playwright-tests/features/@permissions/view-policy-violation.feature b/e2e/playwright-tests/features/@permissions/view-policy-violation.feature index 1d57e4134..d18cac8e4 100644 --- a/e2e/playwright-tests/features/@permissions/view-policy-violation.feature +++ b/e2e/playwright-tests/features/@permissions/view-policy-violation.feature @@ -5,7 +5,7 @@ Feature: VIEW_PORTFOLIO x VIEW_POLICY_VIOLATION Then the user opens the project with the name "test-project01" Then the project "policyViolations" tab should not be visible - Scenario: With VIEW_POLICY_VIOLATION Permission The User Can See The Policy Violations On Project Page + Scenario: With VIEW_POLICY_VIOLATION Permission The User Can See Audit View On Policy Violations Project Page Given the user "test-user_VP_VPV_PERMS" logs in to DependencyTrack and verifies Then the user navigates to "projects" page and verifies Then the user opens the project with the name "test-project01" diff --git a/e2e/playwright-tests/features/@permissions/view-policy-violation_x_policy-violation-analysis.feature b/e2e/playwright-tests/features/@permissions/view-policy-violation_x_policy-violation-analysis.feature index 9a1b07df6..ded0d0004 100644 --- a/e2e/playwright-tests/features/@permissions/view-policy-violation_x_policy-violation-analysis.feature +++ b/e2e/playwright-tests/features/@permissions/view-policy-violation_x_policy-violation-analysis.feature @@ -1,5 +1,5 @@ Feature: VIEW_PORTFOLIO x VIEW_POLICY_VIOLATION x POLICY_VIOLATION_ANALYSIS - Scenario: With VIEW_POLICY_VIOLATION But Without POLICY_VIOLATION_ANALYSIS Permission The User Cannot Edit The Policy Violations On Project Page + Scenario: With VIEW_POLICY_VIOLATION But Without POLICY_VIOLATION_ANALYSIS Permission Can See Audit View On Policy Violations Project Page But Cannot Audit Them Given the user "test-user_VP_VPV_PERMS" logs in to DependencyTrack and verifies Then the user navigates to "projects" page and verifies Then the user opens the project with the name "test-project01" @@ -7,7 +7,7 @@ Feature: VIEW_PORTFOLIO x VIEW_POLICY_VIOLATION x POLICY_VIOLATION_ANALYSIS Then the user expands the first violation on policy violation project tab Then the user verifies read access on the policy violation audit view on policy violations project tab - Scenario: With VIEW_POLICY_VIOLATION x POLICY_VIOLATION_ANALYSIS Permission The User Can Edit The Policy Violations On Project Page + Scenario: With VIEW_POLICY_VIOLATION x POLICY_VIOLATION_ANALYSIS Permission The User Can See Audit View On Policy Violations Project Page And Can Audit Them Given the user "test-user_VP_VPV_PVA_PERMS" logs in to DependencyTrack and verifies Then the user navigates to "projects" page and verifies Then the user opens the project with the name "test-project01"