Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,30 @@ test.describe('Vue Multiline String Widget', { tag: '@vue-nodes' }, () => {
await expect(textarea).toHaveValue(multilineValue)
})

test('keeps paragraph breaks across a serialize and reload round-trip', async ({
comfyPage
}) => {
const textarea = getFirstMultilineStringWidget(comfyPage)

const paragraphs = [
'First paragraph, ending in a space ',
'',
'Second paragraph',
'still the second paragraph'
].join('\n')

await textarea.fill(paragraphs)
await expect(textarea).toHaveValue(paragraphs)

const serialized = await comfyPage.workflow.getExportedWorkflow()
await comfyPage.workflow.loadGraphData(serialized)
await comfyPage.vueNodes.waitForNodes()

await expect(getFirstMultilineStringWidget(comfyPage)).toHaveValue(
paragraphs
)
})

test('should retain value after focus changes', async ({ comfyPage }) => {
const textarea = getFirstMultilineStringWidget(comfyPage)

Expand Down
Loading