mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 03:33:06 +08:00
feat: add toast for workspace deletion (#1825)
Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
co-authored by
himself65
parent
116caff3c7
commit
0c87bf36ca
@@ -22,6 +22,7 @@ test.describe('Local first delete workspace', () => {
|
||||
.getByTestId('delete-workspace-input')
|
||||
.type(currentWorkspaceName as string);
|
||||
await page.getByTestId('delete-workspace-confirm-button').click();
|
||||
await page.getByTestId('affine-toast').waitFor({ state: 'attached' });
|
||||
expect(await page.getByTestId('workspace-card').count()).toBe(0);
|
||||
await page.mouse.click(1, 1);
|
||||
expect(await page.getByTestId('workspace-card').count()).toBe(0);
|
||||
|
||||
Reference in New Issue
Block a user