From e8712359c7ac0bd07dc9b1d4e63a6e8e8318d276 Mon Sep 17 00:00:00 2001 From: StylusFrost Date: Tue, 21 Oct 2025 12:02:36 +0200 Subject: [PATCH] test(ui): refactor ProvidersPage input locators to use role-based queries - Updated additional input locators in ProvidersPage tests to utilize role-based queries for improved accessibility and consistency across the UI tests. --- ui/tests/providers/providers-page.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/tests/providers/providers-page.ts b/ui/tests/providers/providers-page.ts index d9b2bf7c10..488b926c25 100644 --- a/ui/tests/providers/providers-page.ts +++ b/ui/tests/providers/providers-page.ts @@ -158,17 +158,17 @@ export class ProvidersPage extends BasePage { this.accountIdInput = page.getByRole("textbox", { name: "Account ID" }); // AZURE provider form inputs - this.azureSubscriptionIdInput = page.getByLabel("Subscription ID"); - this.azureClientIdInput = page.getByLabel("Client ID"); - this.azureClientSecretInput = page.getByLabel("Client Secret"); - this.azureTenantIdInput = page.getByLabel("Tenant ID"); + this.azureSubscriptionIdInput = page.getByRole("textbox", { name: "Subscription ID" }); + this.azureClientIdInput = page.getByRole("textbox", { name: "Client ID" }); + this.azureClientSecretInput = page.getByRole("textbox", { name: "Client Secret" }); + this.azureTenantIdInput = page.getByRole("textbox", { name: "Tenant ID" }); // M365 provider form inputs - this.m365domainIdInput = page.getByLabel("Domain ID"); - this.m365ClientIdInput = page.getByLabel("Client ID"); - this.m365ClientSecretInput = page.getByLabel("Client Secret"); - this.m365TenantIdInput = page.getByLabel("Tenant ID"); - this.m365CertificateContentInput = page.getByLabel("Certificate Content"); + this.m365domainIdInput = page.getByRole("textbox", { name: "Domain ID" }); + this.m365ClientIdInput = page.getByRole("textbox", { name: "Client ID" }); + this.m365ClientSecretInput = page.getByRole("textbox", { name: "Client Secret" }); + this.m365TenantIdInput = page.getByRole("textbox", { name: "Tenant ID" }); + this.m365CertificateContentInput = page.getByRole("textbox", { name: "Certificate Content" }); // Alias input this.aliasInput = page.getByRole("textbox", { name: "Provider alias (optional)" });