refactor: add workspace events (#1838)

This commit is contained in:
Himself65 authored and GitHub committed 2023-04-06 16:14:23 -05:00
1 parent b6bdf257e4
commit 5ac36b6f0a
13 files changed
+105 -71

No files matched your search

@@ -18,6 +18,7 @@ import { createFakeUser, loginUser, openHomePage } from '../../libs/utils';
import {
assertCurrentWorkspaceFlavour,
createWorkspace,
openWorkspaceListModal,
} from '../../libs/workspace';
test.describe('affine workspace', () => {
@@ -55,5 +56,9 @@ test.describe('affine workspace', () => {
delay: 50,
});
await assertCurrentWorkspaceFlavour('affine', page);
await openWorkspaceListModal(page);
await page.getByTestId('workspace-list-modal-sign-out').click();
await page.waitForTimeout(1000);
await assertCurrentWorkspaceFlavour('local', page);
});
});