mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 00:56:26 +08:00
chore: change default Workspace name to "Demo Workspace" (#1054)
This commit is contained in:
+2
-2
@@ -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({
|
||||
|
||||
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user