tests: add 34 tests
This commit is contained in:
1 parent
187eb19452
commit
069d2f7c28
9 files changed
+94
No files matched your search
@@ -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 () => {});
|
||||||
|
});
|
||||||
@@ -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 () => {});
|
||||||
|
});
|
||||||
@@ -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 () => {});
|
||||||
|
});
|
||||||
@@ -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 () => {});
|
||||||
|
});
|
||||||
File renamed without changes.
@@ -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 () => {});
|
||||||
|
});
|
||||||
@@ -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 () => {});
|
||||||
|
});
|
||||||
File renamed without changes.
+10
@@ -48,4 +48,14 @@ test.describe('workspace', () => {
|
|||||||
await dataCenter.delete('test9');
|
await dataCenter.delete('test9');
|
||||||
expect(await dataCenter.list()).toStrictEqual(['test10']);
|
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