chore: change default Workspace name to "Demo Workspace" (#1054)

This commit is contained in:
JimmFly
2023-02-16 17:55:54 +08:00
committed by GitHub
parent 714665a202
commit b94c0df49e
3 changed files with 4 additions and 4 deletions
@@ -28,12 +28,12 @@ export const WorkspaceSelector = () => {
flexShrink: 0,
}}
size={32}
name={currentWorkspace?.name ?? 'AFFiNE Test'}
name={currentWorkspace?.name ?? 'Demo Workspace'}
workspaceUnit={currentWorkspace}
/>
</div>
<WorkspaceName data-testid="workspace-name">
{currentWorkspace?.name ?? 'AFFiNE Test'}
{currentWorkspace?.name ?? 'Demo Workspace'}
</WorkspaceName>
</SelectorWrapper>
<WorkspaceModal
@@ -1,6 +1,6 @@
import { DataCenter } from '@affine/datacenter';
const DEFAULT_WORKSPACE_NAME = 'AFFiNE Test';
const DEFAULT_WORKSPACE_NAME = 'Demo Workspace';
export const createDefaultWorkspace = async (dataCenter: DataCenter) => {
return dataCenter.createWorkspace({
+1 -1
View File
@@ -7,7 +7,7 @@ loadPage();
test.describe('Local first default workspace', () => {
test('preset workspace name', async ({ page }) => {
const workspaceName = page.getByTestId('workspace-name');
expect(await workspaceName.textContent()).toBe('AFFiNE Test');
expect(await workspaceName.textContent()).toBe('Demo Workspace');
});
test('default workspace avatar', async ({ page }) => {