test(e2e): wait for the visible shell and use the phone path to new workspaces
Since phones get a bottom bar instead of the sidebar (UF-057), the shell wait matched the hidden sidebar first and timed out at 390 px, and the mobile journey clicked the sidebar's workspace button. The wait now takes the first visible shell element, and the journey opens New workspace from All workspaces, as a phone user does.
This commit is contained in:
@@ -8,7 +8,7 @@ function routeWithSkip(route: string): string {
|
||||
}
|
||||
|
||||
async function waitForShell(page: Page): Promise<void> {
|
||||
await page.waitForSelector('.waggle-sidebar, [role="navigation"], main', { timeout: 15_000 });
|
||||
await page.waitForSelector('.waggle-sidebar:visible, [role="navigation"]:visible, main:visible', { timeout: 15_000 });
|
||||
await page.waitForTimeout(300);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user