You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6eaf365
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/editor-lifecycle.test.tsx
+20-6Lines changed: 20 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -233,17 +233,23 @@ afterEach(async () => {
233
233
})
234
234
235
235
describe('loaded rich editor lifecycle',()=>{
236
-
it.each(['paste','drop']asconst)(
237
-
'%s uploads a standalone display-only image from another document',
238
-
async(method)=>{
236
+
it.each([
237
+
{method: 'paste',caption: false},
238
+
{method: 'drop',caption: false},
239
+
{method: 'paste',caption: true},
240
+
{method: 'drop',caption: true},
241
+
]asconst)(
242
+
'$method uploads a display-only image from another document (caption: $caption)',
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/field-upload.test.tsx
+45Lines changed: 45 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,51 @@ async function submit(
82
82
}
83
83
84
84
describe('field upload completion boundary',()=>{
85
+
it.each(['paste','drop']asconst)(
86
+
'%s uploads a non-portable image without losing its accompanying fragment',
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/image-paste.test.ts
+38Lines changed: 38 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/image-upload.test.ts
0 commit comments