diff --git a/e2e-tests/playwright/e2e/plugins/kubernetes-actions/kubernetes-actions.spec.ts b/e2e-tests/playwright/e2e/plugins/kubernetes-actions/kubernetes-actions.spec.ts index 85d7b9e15f..3af3fc4229 100644 --- a/e2e-tests/playwright/e2e/plugins/kubernetes-actions/kubernetes-actions.spec.ts +++ b/e2e-tests/playwright/e2e/plugins/kubernetes-actions/kubernetes-actions.spec.ts @@ -36,6 +36,7 @@ test.describe("Test Kubernetes Actions plugin", () => { await uiHelper.fillTextInputByLabel("Namespace name", namespace); await uiHelper.fillTextInputByLabel("Url", process.env.K8S_CLUSTER_URL); await uiHelper.fillTextInputByLabel("Token", process.env.K8S_CLUSTER_TOKEN); + await uiHelper.checkCheckbox("Skip TLS verification"); await uiHelper.clickButton("Review"); await uiHelper.clickButton("Create"); await kubeClient.getNamespaceByName(namespace); diff --git a/e2e-tests/playwright/utils/ui-helper.ts b/e2e-tests/playwright/utils/ui-helper.ts index ff33c10f7e..0fddf1087f 100644 --- a/e2e-tests/playwright/utils/ui-helper.ts +++ b/e2e-tests/playwright/utils/ui-helper.ts @@ -39,6 +39,13 @@ export class UIhelper { await this.page.keyboard.press("Tab"); } + async checkCheckbox(text: string) { + const locator = this.page.getByRole("checkbox", { + name: text, + }); + await locator.check(); + } + async clickButton( label: string | RegExp, options: { exact?: boolean; force?: boolean } = {