test: test case is added to default workspace

This commit is contained in:
tzhangchi
2022-12-24 22:26:45 +08:00
parent 02bf016ca8
commit 7eba06f17c
2 changed files with 20 additions and 1 deletions
@@ -23,6 +23,7 @@ export const WorkspaceSelector = () => {
<SelectorWrapper data-testid="current-workspace">
<Avatar
alt="Affine"
data-testid="workspace-avatar"
src={
workspaceMeta?.type === WorkspaceType.Private
? user
@@ -38,7 +39,7 @@ export const WorkspaceSelector = () => {
<AffineIcon />
)}
</Avatar>
<WorkspaceName>
<WorkspaceName data-testid="workspace-name">
{workspaceMeta?.type === WorkspaceType.Private
? user
? user.name