AFFiNE/tests/affine-local/e2e/local-first-import-page.spec.ts
2023-08-08 17:14:24 +00:00

19 lines
607 B
TypeScript

import { test } from '@affine-test/kit/playwright';
import { openHomePage } from '@affine-test/kit/utils/load-page';
import {
clickPageMoreActions,
waitEditorLoad,
} from '@affine-test/kit/utils/page-logic';
import { expect } from '@playwright/test';
test('Click import page item', async ({ page }) => {
await openHomePage(page);
await waitEditorLoad(page);
await clickPageMoreActions(page);
const importItem = page.getByTestId('editor-option-menu-import');
await importItem.click();
const importModal = page.locator('import-page');
expect(await importModal.isVisible()).toBe(true);
});