feat: implement splash screen handling in navigation and interactions

- Added a new function `waitForSplashScreenToDisappear` to manage splash screen visibility, ensuring it does not block user interactions.
- Integrated splash screen checks in various navigation functions and interaction methods to enhance user experience by waiting for the splash screen to disappear before proceeding.
- Updated test setup to disable the splash screen during tests for consistent testing behavior.
This commit is contained in:
webdevcody
2026-01-07 16:10:17 -05:00
parent 7176d3e513
commit 11b1bbc143
6 changed files with 124 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
import { Page, Locator } from '@playwright/test';
import { waitForElement } from '../core/waiting';
import { waitForElement, waitForSplashScreenToDisappear } from '../core/waiting';
/**
* Get the session list element
@@ -19,6 +19,8 @@ export async function getNewSessionButton(page: Page): Promise<Locator> {
* Click the new session button
*/
export async function clickNewSessionButton(page: Page): Promise<void> {
// Wait for splash screen to disappear first (safety net)
await waitForSplashScreenToDisappear(page, 3000);
const button = await getNewSessionButton(page);
await button.click();
}