mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 02:13:00 +08:00
refactor(core): new workspace selector and create dialog (#10323)
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
clickNewPageButton,
|
||||
clickSideBarCurrentWorkspaceBanner,
|
||||
} from '@affine-test/kit/utils/sidebar';
|
||||
import { createLocalWorkspace } from '@affine-test/kit/utils/workspace';
|
||||
import { expect } from '@playwright/test';
|
||||
import fs from 'fs-extra';
|
||||
|
||||
@@ -106,12 +107,8 @@ test('export then add', async ({ page, appInfo, workspace }) => {
|
||||
|
||||
test('delete workspace and then restore it from backup', async ({ page }) => {
|
||||
//#region 1. create a new workspace
|
||||
await clickSideBarCurrentWorkspaceBanner(page);
|
||||
const newWorkspaceName = 'new-test-name';
|
||||
|
||||
await page.getByTestId('new-workspace').click();
|
||||
await page.getByTestId('create-workspace-input').fill(newWorkspaceName);
|
||||
await page.getByTestId('create-workspace-create-button').click();
|
||||
await createLocalWorkspace({ name: newWorkspaceName }, page);
|
||||
//#endregion
|
||||
|
||||
//#region 2. create a page in the new workspace (will verify later if it is successfully recovered)
|
||||
|
||||
Reference in New Issue
Block a user