mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
feat(core): use new print pdf api (#7932)
This commit is contained in:
@@ -336,19 +336,6 @@ test('assert the recent browse pages are on the recent list', async ({
|
||||
}
|
||||
});
|
||||
|
||||
test('can use cmdk to export pdf', async ({ page }) => {
|
||||
await openHomePage(page);
|
||||
await waitForEditorLoad(page);
|
||||
await clickNewPageButton(page);
|
||||
await getBlockSuiteEditorTitle(page).click();
|
||||
await getBlockSuiteEditorTitle(page).fill('this is a new page to export');
|
||||
await openQuickSearchByShortcut(page);
|
||||
const [download] = await Promise.all([
|
||||
page.waitForEvent('download'),
|
||||
keyboardDownAndSelect(page, 'Export to PDF'),
|
||||
]);
|
||||
expect(download.suggestedFilename()).toBe('this is a new page to export.pdf');
|
||||
});
|
||||
test('can use cmdk to export png', async ({ page }) => {
|
||||
await openHomePage(page);
|
||||
await waitForEditorLoad(page);
|
||||
|
||||
Reference in New Issue
Block a user