Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
pythongosssss committed Aug 29, 2024
1 parent 074d161 commit aa26f19
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests-ui/tests/widgetInputs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -622,5 +622,21 @@ describe('widget inputs', () => {
})
})
})
it('primitive maintains size on reload', async () => {
const { ez, graph } = await start()
const primitive = ez.PrimitiveNode()
const image = ez.EmptyImage()

image.widgets.width.convertToInput()
primitive.outputs[0].connectTo(image.inputs.width)

primitive.node.size = [999, 999]

await checkBeforeAndAfterReload(graph, async (r) => {
const { node } = graph.find(primitive)
expect(node.size[0]).toBe(999)
expect(node.size[1]).toBe(999)
})
})
})
})

0 comments on commit aa26f19

Please sign in to comment.