mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 04:51:51 +00:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user