From f34a64a82a6edbf9d8b4903e688148011f4d63ce Mon Sep 17 00:00:00 2001 From: Himself65 Date: Wed, 1 Mar 2023 23:51:15 -0600 Subject: [PATCH] test: add test case for upload image (#1250) --- .../panel/general/index.tsx | 1 + .../pure/create-workspace-modal/index.tsx | 2 + .../src/components/pure/file-upload/index.tsx | 2 + .../pure/workspace-avatar/index.tsx | 24 +++++++---- .../pure/workspace-list-modal/index.tsx | 2 +- tests/fixtures/smile.png | Bin 0 -> 96 bytes tests/local-first-avatar.spec.ts | 39 ++++++++++++++++++ 7 files changed, 60 insertions(+), 10 deletions(-) create mode 100644 tests/fixtures/smile.png create mode 100644 tests/local-first-avatar.spec.ts diff --git a/apps/web/src/components/affine/workspace-setting-detail/panel/general/index.tsx b/apps/web/src/components/affine/workspace-setting-detail/panel/general/index.tsx index d3d75d2ac0..ed4e2602ca 100644 --- a/apps/web/src/components/affine/workspace-setting-detail/panel/general/index.tsx +++ b/apps/web/src/components/affine/workspace-setting-detail/panel/general/index.tsx @@ -63,6 +63,7 @@ export const GeneralPanel: React.FC = ({ <>
diff --git a/apps/web/src/components/pure/create-workspace-modal/index.tsx b/apps/web/src/components/pure/create-workspace-modal/index.tsx index 361a3c5368..6d44927e0d 100644 --- a/apps/web/src/components/pure/create-workspace-modal/index.tsx +++ b/apps/web/src/components/pure/create-workspace-modal/index.tsx @@ -48,6 +48,7 @@ export const CreateWorkspaceModal = ({ {t('New Workspace')}

{t('Workspace description')}