test(ui): improve provider page load handling in tests

- Added a wait for network idle state in the ProvidersPage test to ensure all network requests are completed before proceeding.
- This enhancement improves the reliability of the test by ensuring the page is fully loaded before assertions are made.
This commit is contained in:
StylusFrost
2025-10-20 10:30:51 +02:00
parent 5e3db29de7
commit 761563472b
+1
View File
@@ -288,6 +288,7 @@ export class ProvidersPage extends BasePage {
await expect(this.page).toHaveTitle(/Prowler/);
await expect(this.addProviderButton).toBeVisible();
await this.page.waitForLoadState('networkidle');
}
async verifyConnectAccountPageLoaded(): Promise<void> {