test: cover share page e2e (#4126)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-09-02 00:57:04 -05:00
1 parent 8825678ca9
commit 4f97ea8a5d
27 files changed
+186 -99

No files matched your search

@@ -1,7 +1,10 @@
import { resolve } from 'node:path';
import { test } from '@affine-test/kit/playwright';
import { newPage, waitForEditorLoad } from '@affine-test/kit/utils/page-logic';
import {
clickNewPageButton,
waitForEditorLoad,
} from '@affine-test/kit/utils/page-logic';
import {
check8080Available,
setupProxyServer,
@@ -17,7 +20,7 @@ test('init page', async ({ page, context }) => {
await check8080Available(context);
await page.goto('http://localhost:8081/');
await waitForEditorLoad(page);
await newPage(page);
await clickNewPageButton(page);
const locator = page.locator('v-line').nth(0);
await locator.fill('hello');