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 @@ -44,5 +44,37 @@ test.describe(
)
).toHaveValue('')
})

test('an emptied promoted text widget stays empty across a round-trip', async ({
comfyPage
}) => {
await comfyPage.workflow.loadWorkflow(
'subgraphs/subgraph-with-promoted-text-widget'
)

const promotedTextbox = () =>
comfyPage.vueNodes
.getNodeLocator('11')
.getByRole('textbox', { name: 'text' })

async function roundTrip() {
const serialized = await comfyPage.workflow.getExportedWorkflow()
await comfyPage.workflow.loadGraphData(serialized)
await comfyPage.vueNodes.waitForNodes()
}

const baseline = 'promoted value that must be cleared'
await promotedTextbox().fill(baseline)
await expect(promotedTextbox()).toHaveValue(baseline)

await roundTrip()
await expect(promotedTextbox()).toHaveValue(baseline)

await promotedTextbox().fill('')
await expect(promotedTextbox()).toHaveValue('')

await roundTrip()
await expect(promotedTextbox()).toHaveValue('')
})
}
)
Loading