You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, you may need to wait for the page to reach a certain load state before interacting with it. You can use `await page.waitForLoadState( 'domcontentloaded' );` to wait for the page to finish loading.
287
277
288
-
**What timeout values are used for UI interactions?**
289
-
290
-
The E2E tests use optimized timeout values for better reliability:
291
-
- **Global expect timeout**: 20 seconds (configured in `playwright.config.ts`)
292
-
- **UI interaction timeouts**: 10 seconds for critical UI elements (buttons, forms, etc.)
293
-
- **Page load timeouts**: 120 seconds for test execution
294
-
- **Network idle waits**: Used for dynamic content loading
295
-
296
-
These timeouts have been increased from the previous 100ms values to provide better stability, especially for slower environments or complex UI interactions.
297
-
298
278
**What is the best way to target elements in the page?**
299
279
300
280
Prefer the use of [user-facing attribute or test-id locators](https://playwright.dev/docs/locators#locating-elements) to target elements in the page. This will make the tests more resilient to changes to implementation details, such as class names.
0 commit comments