Skip to content

Commit

Permalink
Fix TLS verification
Browse files Browse the repository at this point in the history
Signed-off-by: Dominika Zemanovicova <dzemanov@redhat.com>
  • Loading branch information
dzemanov committed Jan 15, 2025
1 parent 9983b98 commit bfdc37c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 7 additions & 0 deletions e2e-tests/playwright/utils/ui-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 } = {
Expand Down

0 comments on commit bfdc37c

Please sign in to comment.