form-render.json 842 B

123456789101112131415161718192021222324
  1. {
  2. "name": "verify-form-render",
  3. "nodes": [
  4. {"id": "n1", "name": "Form", "type": "form-trigger", "position": {"x": 0, "y": 0},
  5. "config": {"title": "Send an image", "description": "Pick a picture",
  6. "fields": [
  7. {"name": "caption", "label": "Caption", "type": "text", "required": true},
  8. {"name": "image", "label": "Image", "type": "file", "required": true, "accept": "image/*"}
  9. ]}}
  10. ],
  11. "connections": [],
  12. "http": {
  13. "method": "GET",
  14. "path": "/webhook/{workflowId}",
  15. "expectStatus": 200,
  16. "expectHeaders": {"Content-Type": "text/html"},
  17. "expectBodyContains": [
  18. "Send an image", "Pick a picture",
  19. "name=\"caption\"", "name=\"image\"",
  20. "type=\"file\"", "accept=\"image/*\"",
  21. "enctype=\"multipart/form-data\""
  22. ]
  23. }
  24. }