chore: change default Workspace name to "Demo Workspace" (#1054)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
@@ -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 }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user