feat(core): use new print pdf api (#7932)

This commit is contained in:
EYHN
2024-08-21 10:06:22 +00:00
parent cf086e4018
commit 3db95bafa2
17 changed files with 197 additions and 118 deletions

View File

@@ -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);