refactor(core): desktop project struct (#8334)

This commit is contained in:
EYHN
2024-11-05 11:00:33 +08:00
committed by GitHub
parent 89d09fd5e9
commit 902635e60f
343 changed files with 3846 additions and 3508 deletions

View File

@@ -7,7 +7,6 @@ import {
getPageByTitle,
waitForEditorLoad,
} from '@affine-test/kit/utils/page-logic';
import { waitForLogMessage } from '@affine-test/kit/utils/utils';
import { expect } from '@playwright/test';
test('New a page and open it, then favorite it', async ({
@@ -62,23 +61,6 @@ test('Export to html, markdown and png', async ({ page }) => {
// }
});
test.skip('Export to pdf', async ({ page }) => {
const CheckedMessage = '[test] beforeprint event emitted';
page.addInitScript(() => {
window.addEventListener('beforeprint', () => {
console.log(CheckedMessage);
});
});
await openHomePage(page);
await waitForEditorLoad(page);
{
await clickPageMoreActions(page);
await page.getByTestId('export-menu').click();
await page.getByTestId('export-to-pdf').click();
expect(waitForLogMessage(page, CheckedMessage)).toBeTruthy();
}
});
test('Cancel favorite', async ({ page, workspace }) => {
await openHomePage(page);
await waitForEditorLoad(page);