Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

tests: add tests

tzhangchif257dcf38876
diff --git a/packages/data-center/tests/ permission.spec.ts b/packages/data-center/tests/ permission.spec.ts
new file mode 100644
index 0000000000..82cd054483
--- /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 0b14361993..018dd7ce37 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 0000000000..f28bd9e841
--- /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 cba8689fd5..61856b6ab6 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 () => {});
});