diff --git a/ui/tests/providers/providers-page.ts b/ui/tests/providers/providers-page.ts index 2e1a51dcbe..66b77668e7 100644 --- a/ui/tests/providers/providers-page.ts +++ b/ui/tests/providers/providers-page.ts @@ -95,8 +95,8 @@ export class ProvidersPage extends BasePage { this.githubProviderRadio = page.getByRole("radio", { name: /GitHub/i }); // AWS provider form inputs - this.accountIdInput = page.getByLabel("Account ID"); - this.aliasInput = page.getByLabel("Provider alias (optional)"); + this.accountIdInput = page.getByRole("textbox", { name: "Account ID" }); + this.aliasInput = page.getByRole("textbox", { name: "Provider alias (optional)" }); // Navigation buttons in the form (next and back) this.nextButton = page @@ -122,12 +122,12 @@ export class ProvidersPage extends BasePage { }); // Inputs for IAM Role credentials - this.roleArnInput = page.getByLabel("Role ARN"); - this.externalIdInput = page.getByLabel("External ID"); + this.roleArnInput = page.getByRole("textbox", { name: "Role ARN" }); + this.externalIdInput = page.getByRole("textbox", { name: "External ID" }); // Inputs for static credentials - this.accessKeyIdInput = page.getByLabel("Access Key ID"); - this.secretAccessKeyInput = page.getByLabel("Secret Access Key"); + this.accessKeyIdInput = page.getByRole("textbox", { name: "Access Key ID" }); + this.secretAccessKeyInput = page.getByRole("textbox", { name: "Secret Access Key" }); // Delete button this.deleteProviderConfirmationButton = page.locator(