feat(core): adjust share menu style (#4584)

This commit is contained in:
JimmFly authored and GitHub committed 2023-10-12 03:26:13 +00:00
1 parent ae4322b75f
commit 5ebd82dc04
9 files changed
+173 -109

No files matched your search

+9
View File
@@ -176,3 +176,12 @@ export async function enableCloudWorkspace(page: Page) {
await waitForEditorLoad(page);
await clickNewPageButton(page);
}
export async function enableCloudWorkspaceFromShareButton(page: Page) {
await page.getByTestId('local-share-menu-button').click();
await page.getByTestId('share-menu-enable-affine-cloud-button').click();
await page.getByTestId('confirm-enable-affine-cloud-button').click();
// wait for upload and delete local workspace
await page.waitForTimeout(2000);
await waitForEditorLoad(page);
await clickNewPageButton(page);
}