refactor: remove unused code (#2484)

This commit is contained in:
Himself65 authored and GitHub committed 2023-05-22 17:11:18 +08:00
1 parent 281a068cfb
commit f01997f8ee
31 files changed
+44 -1505

No files matched your search

-21
View File
@@ -47,24 +47,3 @@ export async function clickPageMoreActions(page: Page) {
.getByTestId('editor-option-menu')
.click();
}
/**
* @deprecated
*/
export async function createPinboardPage(
page: Page,
parentId: string,
title: string
) {
await newPage(page);
await page.focus('.affine-default-page-block-title');
await page.type('.affine-default-page-block-title', title, {
delay: 100,
});
await clickPageMoreActions(page);
await page.getByTestId('move-to-menu-item').click();
await page
.getByTestId('pinboard-menu')
.getByTestId(`pinboard-${parentId}`)
.click();
}