diff --git a/e2e-tests/playwright/e2e/plugins/rbac/rbac.spec.ts b/e2e-tests/playwright/e2e/plugins/rbac/rbac.spec.ts index 3040c8f5c2..3215a6e3fa 100644 --- a/e2e-tests/playwright/e2e/plugins/rbac/rbac.spec.ts +++ b/e2e-tests/playwright/e2e/plugins/rbac/rbac.spec.ts @@ -14,10 +14,11 @@ import { RhdhAuthApiHack } from "../../../support/api/rhdh-auth-api-hack"; import RhdhRbacApi from "../../../support/api/rbac-api"; import { RbacConstants } from "../../../data/rbac-constants"; import { Policy } from "../../../support/api/rbac-api-structures"; +import {CatalogImport} from "../../../support/pages/catalog-import"; /* Note that: - The policies generated from a policy.csv or ConfigMap file cannot be edited or deleted using the Developer Hub Web UI. + The policies generated from a policy.csv or ConfigMap file cannot be edited or deleted using the Developer Hub Web UI. https://docs.redhat.com/en/documentation/red_hat_developer_hub/1.3/html/authorization/managing-authorizations-by-using-the-web-ui#proc-rbac-ui-edit-role_title-authorization */ test.describe.serial("Test RBAC", () => { @@ -454,6 +455,11 @@ test.describe.serial("Test RBAC", () => { test("Test catalog-entity create is allowed", async () => { await uiHelper.openSidebar("Create..."); expect(await uiHelper.isLinkVisible("Register Existing Component")); + const catalogImport = new CatalogImport(page); + await catalogImport.registerExistingComponent( + 'https://github.com/RoadieHQ/sample-service/blob/main/demo_template.yaml', + true, + ); }); test("Test bad PUT and PUT catalog-entity update policy", async () => {