From f257dcf38876b467f5be1c0ed65307387e3aaf16 Mon Sep 17 00:00:00 2001 From: tzhangchi Date: Tue, 3 Jan 2023 22:25:48 +0800 Subject: [PATCH] tests: add tests --- packages/data-center/tests/ permission.spec.ts | 17 +++++++++++++++++ packages/data-center/tests/cloud-sync.spec.ts | 8 +++----- packages/data-center/tests/collaborate.spec.ts | 15 +++++++++++++++ packages/data-center/tests/share.spec.ts | 10 +++------- 4 files changed, 38 insertions(+), 12 deletions(-) create mode 100644 packages/data-center/tests/ permission.spec.ts create mode 100644 packages/data-center/tests/collaborate.spec.ts diff --git a/packages/data-center/tests/ permission.spec.ts b/packages/data-center/tests/ permission.spec.ts new file mode 100644 index 000000000..82cd05448 --- /dev/null +++ b/packages/data-center/tests/ permission.spec.ts @@ -0,0 +1,17 @@ +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('unlogin user open the public workspace ', async () => {}); + + test('unlogin user open the private workspace ', async () => {}); +}); diff --git a/packages/data-center/tests/cloud-sync.spec.ts b/packages/data-center/tests/cloud-sync.spec.ts index 0b1436199..018dd7ce3 100644 --- a/packages/data-center/tests/cloud-sync.spec.ts +++ b/packages/data-center/tests/cloud-sync.spec.ts @@ -5,13 +5,11 @@ import { getDataCenter } from './utils.js'; import 'fake-indexeddb/auto'; test.describe('cloud-sync', () => { - test('get cloud sync flag of workspace ', async () => {}); + test('get cloud the sync flag of workspace ', async () => {}); - test('enable cloud sync feature', async () => {}); + test('enable [cloud sync feature]', async () => {}); - test('close cloud sync feature', async () => {}); - - test('editor collaborate', async () => {}); + test('close [cloud sync feature]', async () => {}); test('editor cloud storage', async () => {}); }); diff --git a/packages/data-center/tests/collaborate.spec.ts b/packages/data-center/tests/collaborate.spec.ts new file mode 100644 index 000000000..f28bd9e84 --- /dev/null +++ b/packages/data-center/tests/collaborate.spec.ts @@ -0,0 +1,15 @@ +import { test, expect } from '@playwright/test'; + +import { getDataCenter } from './utils.js'; + +import 'fake-indexeddb/auto'; + +test.describe('collaborate', () => { + test('collaborate editor content', async () => {}); + + test('collaborate workspace name', async () => {}); + + test('collaborate workspace avator', async () => {}); + + test('collaborate workspace list', async () => {}); +}); diff --git a/packages/data-center/tests/share.spec.ts b/packages/data-center/tests/share.spec.ts index cba8689fd..61856b6ab 100644 --- a/packages/data-center/tests/share.spec.ts +++ b/packages/data-center/tests/share.spec.ts @@ -5,15 +5,11 @@ 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('add(invite) member by email', async () => {}); test('accept invite member link', async () => {}); test('members list', async () => {}); + + test('delete member', async () => {}); });