refactor: remove unused code (#2484)

This commit is contained in:
Himself65
2023-05-22 17:11:18 +08:00
committed by GitHub
parent 281a068cfb
commit f01997f8ee
31 changed files with 44 additions and 1505 deletions

View File

@@ -1,15 +1,7 @@
import type { Page } from '@playwright/test';
import { getMetas } from './utils';
export const webUrl = 'http://localhost:8080';
export async function openHomePage(page: Page) {
await page.goto(webUrl);
}
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);
}