Skip to content

Commit

Permalink
Test template exists
Browse files Browse the repository at this point in the history
Signed-off-by: Dominika Zemanovicova <[email protected]>
  • Loading branch information
dzemanov committed Jan 8, 2025
1 parent d9193a0 commit 4d07fb4
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { test } from "@playwright/test";
import { Common, setupBrowser } from "../../../utils/common";
import { UIhelper } from "../../../utils/ui-helper";
import { KubeClient } from "../../../utils/kube-client";
import { CatalogImport } from "../../../support/pages/catalog-import";

test.describe("Test Kubernetes Actions plugin", () => {
let common: Common;
Expand All @@ -14,9 +15,16 @@ test.describe("Test Kubernetes Actions plugin", () => {
common = new Common(page);
uiHelper = new UIhelper(page);
kubeClient = new KubeClient();
const catalogImport = new CatalogImport(page);
const template =
"https://github.com/backstage/community-plugins/blob/main/workspaces/scaffolder-backend-module-kubernetes/plugins/kubernetes-actions/examples/templates/01-kubernetes-template.yaml";

await common.loginAsGuest();
await uiHelper.openSidebar("Create...");

await uiHelper.clickButton("Register Existing Component");
await catalogImport.registerExistingComponent(template, false);
await uiHelper.openSidebar("Create...");
});

test("Creates kubernetes namespace", async () => {
Expand Down

0 comments on commit 4d07fb4

Please sign in to comment.