mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
14 lines
408 B
TypeScript
14 lines
408 B
TypeScript
import type { Page } from '@playwright/test';
|
|
|
|
import { getMetas } from './utils';
|
|
|
|
export async function openHomePage(page: Page) {
|
|
await page.goto('http://localhost:8080');
|
|
}
|
|
|
|
export async function initHomePageWithPinboard(page: Page) {
|
|
await openHomePage(page);
|
|
await page.waitForSelector('[data-testid="sidebar-pinboard-container"]');
|
|
return (await getMetas(page)).find(m => m.isRootPinboard);
|
|
}
|