test: enable affine workspace test (#1625)

This commit is contained in:
Himself65 2023-03-20 15:34:48 -05:00 committed by GitHub
parent a8ca92e34a
commit b3206b1682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
import { uuidv4 } from '@blocksuite/store';
import { expect } from '@playwright/test';
import userA from '../fixtures/userA.json';
@ -23,12 +24,12 @@ test.describe('affine workspace', () => {
expect(await footer.getByText(userA.email).isVisible()).toBe(true);
});
// fixme: skip this because of duplicated creation of workspace may cause error
test.skip('should enable affine workspace successfully', async ({ page }) => {
test('should enable affine workspace successfully', async ({ page }) => {
await openHomePage(page);
const [a] = await createFakeUser();
await loginUser(page, a);
await createWorkspace({ name: 'test1' }, page);
const name = `test-${uuidv4()}`;
await createWorkspace({ name }, page);
await page.waitForTimeout(50);
await clickSideBarSettingButton(page);
await page.waitForTimeout(50);