mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-27 19:23:24 +03:00
19 lines
607 B
TypeScript
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);
|
|
});
|