refactor: workspace manager (#5060)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user