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

View File

@@ -28,12 +28,12 @@ export const WorkspaceSelector = () => {
flexShrink: 0, flexShrink: 0,
}} }}
size={32} size={32}
name={currentWorkspace?.name ?? 'AFFiNE Test'} name={currentWorkspace?.name ?? 'Demo Workspace'}
workspaceUnit={currentWorkspace} workspaceUnit={currentWorkspace}
/> />
</div> </div>
<WorkspaceName data-testid="workspace-name"> <WorkspaceName data-testid="workspace-name">
{currentWorkspace?.name ?? 'AFFiNE Test'} {currentWorkspace?.name ?? 'Demo Workspace'}
</WorkspaceName> </WorkspaceName>
</SelectorWrapper> </SelectorWrapper>
<WorkspaceModal <WorkspaceModal

View File

@@ -1,6 +1,6 @@
import { DataCenter } from '@affine/datacenter'; import { DataCenter } from '@affine/datacenter';
const DEFAULT_WORKSPACE_NAME = 'AFFiNE Test'; const DEFAULT_WORKSPACE_NAME = 'Demo Workspace';
export const createDefaultWorkspace = async (dataCenter: DataCenter) => { export const createDefaultWorkspace = async (dataCenter: DataCenter) => {
return dataCenter.createWorkspace({ return dataCenter.createWorkspace({

View File

@@ -7,7 +7,7 @@ loadPage();
test.describe('Local first default workspace', () => { test.describe('Local first default workspace', () => {
test('preset workspace name', async ({ page }) => { test('preset workspace name', async ({ page }) => {
const workspaceName = page.getByTestId('workspace-name'); 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 }) => { test('default workspace avatar', async ({ page }) => {