refactor: workspace manager (#5060)

This commit is contained in:
EYHN
2023-12-15 07:20:50 +00:00
parent af15aa06d4
commit fe2851d3e9
217 changed files with 3605 additions and 4244 deletions

View File

@@ -25,7 +25,7 @@ test('just one item in the workspace list at first', async ({
).not.toBeNull();
const currentWorkspace = await workspace.current();
expect(currentWorkspace.flavour).toContain('local');
expect(currentWorkspace.meta.flavour).toContain('local');
});
test('create one workspace in the workspace list', async ({
@@ -57,7 +57,7 @@ test('create one workspace in the workspace list', async ({
expect(result1).toBe(11);
const currentWorkspace = await workspace.current();
expect(currentWorkspace.flavour).toContain('local');
expect(currentWorkspace.meta.flavour).toContain('local');
});
test('create multi workspace in the workspace list', async ({
@@ -88,7 +88,7 @@ test('create multi workspace in the workspace list', async ({
const currentWorkspace = await workspace.current();
expect(currentWorkspace.flavour).toContain('local');
expect(currentWorkspace.meta.flavour).toContain('local');
await openWorkspaceListModal(page);
await page.waitForTimeout(1000);
@@ -142,5 +142,5 @@ test('create multi workspace in the workspace list', async ({
const nextWorkspace = await workspace.current();
expect(currentWorkspace.id).toBe(nextWorkspace.id);
expect(currentWorkspace.meta.id).toBe(nextWorkspace.meta.id);
});