test(test): update button selector in ProvidersPage tests

- Changed the selector for the "Add Cloud Provider" button from text-based to role-based for improved reliability and maintainability.
This commit is contained in:
StylusFrost
2025-10-21 09:31:11 +02:00
parent d63ae0e40f
commit f15fdfc642
+1 -3
View File
@@ -71,9 +71,7 @@ export class ProvidersPage extends BasePage {
super(page);
// Button to add a new cloud provider
this.addProviderButton = page.getByText("Add Cloud Provider", {
exact: true,
});
this.addProviderButton = page.getByRole("button", { name: "Add Cloud Provider", exact: true });
// Table displaying existing providers
this.providersTable = page.getByRole("table");