mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-19 15:26:59 +08:00
fix: remove the feature of exporting pdf/png (#2619)
Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
@@ -48,17 +48,17 @@ test('Export to html, markdown and png', async ({ page }) => {
|
||||
await page.getByTestId('export-to-html').click();
|
||||
await downloadPromise;
|
||||
}
|
||||
await page.waitForTimeout(50);
|
||||
{
|
||||
await clickPageMoreActions(page);
|
||||
await page.getByTestId('export-menu').click();
|
||||
const downloadPromise = page.waitForEvent('download');
|
||||
await page.getByTestId('export-to-png').click();
|
||||
await downloadPromise;
|
||||
}
|
||||
// await page.waitForTimeout(50);
|
||||
// {
|
||||
// await clickPageMoreActions(page);
|
||||
// await page.getByTestId('export-menu').click();
|
||||
// const downloadPromise = page.waitForEvent('download');
|
||||
// await page.getByTestId('export-to-png').click();
|
||||
// await downloadPromise;
|
||||
// }
|
||||
});
|
||||
|
||||
test('Export to pdf', async ({ page }) => {
|
||||
test.skip('Export to pdf', async ({ page }) => {
|
||||
const CheckedMessage = '[test] beforeprint event emitted';
|
||||
page.addInitScript(() => {
|
||||
window.addEventListener('beforeprint', () => {
|
||||
|
||||
Reference in New Issue
Block a user