Skip to content
Weave templates

BDD Feature Flow

Given → When → Then. Edge labels carry the spec phrases.

Template previewWeave
Rendering…

Make it your own.

{
  "nodes": [
    { "id":"g","type":"ellipse","label":"Given","x":40,"y":160,"fill":"#dcfce7","stroke":"#15803d" },
    { "id":"w","type":"rect","label":"When","x":260,"y":160,"fill":"#dbeafe","stroke":"#2563eb" },
    { "id":"t","type":"ellipse","label":"Then","x":480,"y":160,"fill":"#fef3c7","stroke":"#a16207" },
    { "id":"c","type":"diamond","label":"And?","x":680,"y":145,"fill":"#fef3c7","stroke":"#a16207" },
    { "id":"x","type":"rect","label":"Extra step","x":880,"y":80,"fill":"#ede9fe","stroke":"#6d28d9" },
    { "id":"d","type":"ellipse","label":"Done","x":880,"y":210,"fill":"#dcfce7","stroke":"#15803d" }
  ],
  "edges": [
    { "id":"e1","source":"g","target":"w","label":"user opens cart" },
    { "id":"e2","source":"w","target":"t","label":"clicks checkout" },
    { "id":"e3","source":"t","target":"c","label":"order persists" },
    { "id":"e4","source":"c","target":"x","label":"yes" },
    { "id":"e5","source":"c","target":"d","label":"no" }
  ]
}