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.
This commit is contained in:
StylusFrost
2025-10-21 12:02:36 +02:00
parent 1ea859f606
commit e8712359c7
+9 -9
View File
@@ -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)" });