All checks were successful
Queue Release Build / prepare (push) Successful in 19s
Deploy Web Apps / deploy (push) Successful in 8m12s
Queue Release Build / build-windows (push) Successful in 27m44s
Queue Release Build / build-linux (push) Successful in 48m1s
Queue Release Build / build-android (push) Successful in 22m7s
Queue Release Build / finalize (push) Successful in 2m42s
12 lines
494 B
TypeScript
12 lines
494 B
TypeScript
import { expect, type Page } from '@playwright/test';
|
|
|
|
/** Dashboard omnibox (desktop placeholder copy changed with i18n refresh). */
|
|
export function dashboardSearchInput(page: Page) {
|
|
return page.getByRole('textbox', { name: 'Search people, servers, and invites' });
|
|
}
|
|
|
|
export async function expectDashboardReady(page: Page, timeout = 30_000): Promise<void> {
|
|
await expect(page).toHaveURL(/\/dashboard/, { timeout });
|
|
await expect(dashboardSearchInput(page)).toBeVisible({ timeout });
|
|
}
|