tests: add 34 tests
This commit is contained in:
13
packages/data-center/__tests__/attachment.spec.ts
Normal file
13
packages/data-center/__tests__/attachment.spec.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
import { getDataCenter } from './utils.js';
|
||||
|
||||
import 'fake-indexeddb/auto';
|
||||
|
||||
test.describe('attachment', () => {
|
||||
test('upload blob', async () => {});
|
||||
|
||||
test('get blob', async () => {});
|
||||
|
||||
test('remove blob', async () => {});
|
||||
});
|
||||
15
packages/data-center/__tests__/auth.spec.ts
Normal file
15
packages/data-center/__tests__/auth.spec.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
import { getDataCenter } from './utils.js';
|
||||
|
||||
import 'fake-indexeddb/auto';
|
||||
|
||||
test.describe('auth', () => {
|
||||
test('signin', async () => {});
|
||||
|
||||
test('signout', async () => {});
|
||||
|
||||
test('isLogin', async () => {});
|
||||
|
||||
test('getUserInfo', async () => {});
|
||||
});
|
||||
17
packages/data-center/__tests__/cloud-sync.spec.ts
Normal file
17
packages/data-center/__tests__/cloud-sync.spec.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
import { getDataCenter } from './utils.js';
|
||||
|
||||
import 'fake-indexeddb/auto';
|
||||
|
||||
test.describe('cloud-sync', () => {
|
||||
test('get cloud sync flag of workspace ', async () => {});
|
||||
|
||||
test('enable cloud sync feature', async () => {});
|
||||
|
||||
test('close cloud sync feature', async () => {});
|
||||
|
||||
test('editor collaborate', async () => {});
|
||||
|
||||
test('editor cloud storage', async () => {});
|
||||
});
|
||||
11
packages/data-center/__tests__/import-export.spec.ts
Normal file
11
packages/data-center/__tests__/import-export.spec.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
import { getDataCenter } from './utils.js';
|
||||
|
||||
import 'fake-indexeddb/auto';
|
||||
|
||||
test.describe('import export', () => {
|
||||
test('import workspace', async () => {});
|
||||
|
||||
test('export workspace', async () => {});
|
||||
});
|
||||
9
packages/data-center/__tests__/search.spec.ts
Normal file
9
packages/data-center/__tests__/search.spec.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
import { getDataCenter } from './utils.js';
|
||||
|
||||
import 'fake-indexeddb/auto';
|
||||
|
||||
test.describe('search', () => {
|
||||
test('search service', async () => {});
|
||||
});
|
||||
19
packages/data-center/__tests__/share.spec.ts
Normal file
19
packages/data-center/__tests__/share.spec.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
import { getDataCenter } from './utils.js';
|
||||
|
||||
import 'fake-indexeddb/auto';
|
||||
|
||||
test.describe('share', () => {
|
||||
test('get the public of workspace', async () => {});
|
||||
|
||||
test('make workspace public', async () => {});
|
||||
|
||||
test('make workspace private', async () => {});
|
||||
|
||||
test('invite member by email', async () => {});
|
||||
|
||||
test('accept invite member link', async () => {});
|
||||
|
||||
test('members list', async () => {});
|
||||
});
|
||||
@@ -48,4 +48,14 @@ test.describe('workspace', () => {
|
||||
await dataCenter.delete('test9');
|
||||
expect(await dataCenter.list()).toStrictEqual(['test10']);
|
||||
});
|
||||
|
||||
test('create workspace', async () => {});
|
||||
test('get the workspace', async () => {});
|
||||
|
||||
test('get workspace name', async () => {});
|
||||
test('set workspace name', async () => {});
|
||||
|
||||
test('get workspace avatar', async () => {});
|
||||
|
||||
test('set workspace avatar', async () => {});
|
||||
});
|
||||
Reference in New Issue
Block a user