Use visibility of textarea to determine if loaded correctly

This commit is contained in:
christian-byrne
2024-09-25 12:30:51 -07:00
committed by Chenlei Hu
parent 2b2b1cdb85
commit 7e5d82d0e8

View File

@@ -28,5 +28,8 @@ test.describe('Optional input', () => {
await comfyPage.loadWorkflow('only_optional_inputs')
expect(await comfyPage.getGraphNodesCount()).toBe(1)
expect(comfyPage.page.locator('.comfy-missing-nodes')).not.toBeVisible()
// If the node's multiline text widget is visible, then it was loaded successfully
expect(comfyPage.page.locator('.comfy-multiline-input')).toHaveCount(1)
})
})