mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
refactor(core): remove copilot client from presets (#6546)
depends on https://github.com/toeverything/blocksuite/pull/6748
This commit is contained in:
@@ -76,9 +76,9 @@ test('create multi workspace in the workspace list', async ({
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
{
|
||||
//check workspace list length
|
||||
const workspaceCards = await page.$$('data-testid=workspace-card');
|
||||
expect(workspaceCards.length).toBe(3);
|
||||
// check workspace list length
|
||||
const workspaceCards = page.getByTestId('workspace-card');
|
||||
await expect(workspaceCards).toHaveCount(3);
|
||||
}
|
||||
|
||||
await page.reload();
|
||||
@@ -118,7 +118,20 @@ test('create multi workspace in the workspace list', async ({
|
||||
}
|
||||
);
|
||||
await page.mouse.up();
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
// check workspace list order
|
||||
await page.waitForFunction(
|
||||
() => {
|
||||
const cards = document.querySelectorAll('[data-testid="workspace-card"]');
|
||||
return (
|
||||
cards[1].textContent?.includes('New Workspace 3') &&
|
||||
cards[2].textContent?.includes('New Workspace 2')
|
||||
);
|
||||
},
|
||||
[],
|
||||
{ timeout: 5000 }
|
||||
);
|
||||
|
||||
await page.reload();
|
||||
await openWorkspaceListModal(page);
|
||||
|
||||
@@ -127,7 +140,7 @@ test('create multi workspace in the workspace list', async ({
|
||||
{
|
||||
await page.waitForTimeout(1000);
|
||||
const workspaceCards = page.getByTestId('workspace-card');
|
||||
expect(await workspaceCards.count()).toBe(3);
|
||||
await expect(workspaceCards).toHaveCount(3);
|
||||
}
|
||||
|
||||
const workspaceChangePromise = page.evaluate(() => {
|
||||
|
||||
Reference in New Issue
Block a user