{
  "version": 1,
  "title": "Approve a grayscale print proof",
  "milestones": [
    {
      "id": "mode",
      "label": "Choose grayscale",
      "after": [],
      "match": {
        "state": {
          "mode": "grayscale"
        }
      }
    },
    {
      "id": "proof",
      "label": "Generate a grayscale proof",
      "after": [
        "mode"
      ],
      "match": {
        "state": {
          "proof": "grayscale"
        }
      }
    },
    {
      "id": "approve",
      "label": "Approve that proof",
      "after": [
        "proof"
      ],
      "match": {
        "state": {
          "proof": "grayscale",
          "approval": "approved"
        }
      }
    }
  ],
  "reference": [
    {
      "action": {
        "type": "click",
        "target": "Grayscale mode"
      },
      "state": {
        "mode": "grayscale",
        "proof": "absent",
        "approval": "pending"
      }
    },
    {
      "action": {
        "type": "click",
        "target": "Generate proof"
      },
      "state": {
        "mode": "grayscale",
        "proof": "grayscale",
        "approval": "pending"
      }
    },
    {
      "action": {
        "type": "click",
        "target": "Approve proof"
      },
      "state": {
        "mode": "grayscale",
        "proof": "grayscale",
        "approval": "approved"
      }
    }
  ],
  "candidates": [
    {
      "id": "detour",
      "label": "Detour",
      "steps": [
        {
          "action": {
            "type": "click",
            "target": "Color mode"
          },
          "state": {
            "mode": "color",
            "proof": "absent",
            "approval": "pending"
          }
        },
        {
          "action": {
            "type": "click",
            "target": "Generate proof"
          },
          "state": {
            "mode": "color",
            "proof": "color",
            "approval": "pending"
          }
        },
        {
          "action": {
            "type": "click",
            "target": "Grayscale mode"
          },
          "state": {
            "mode": "grayscale",
            "proof": "absent",
            "approval": "pending"
          }
        },
        {
          "action": {
            "type": "click",
            "target": "Generate proof"
          },
          "state": {
            "mode": "grayscale",
            "proof": "grayscale",
            "approval": "pending"
          }
        },
        {
          "action": {
            "type": "click",
            "target": "Approve proof"
          },
          "state": {
            "mode": "grayscale",
            "proof": "grayscale",
            "approval": "approved"
          }
        }
      ]
    },
    {
      "id": "wrong-mode",
      "label": "Wrong Mode",
      "steps": [
        {
          "action": {
            "type": "click",
            "target": "Color mode"
          },
          "state": {
            "mode": "color",
            "proof": "absent",
            "approval": "pending"
          }
        },
        {
          "action": {
            "type": "click",
            "target": "Generate proof"
          },
          "state": {
            "mode": "color",
            "proof": "color",
            "approval": "pending"
          }
        },
        {
          "action": {
            "type": "click",
            "target": "Approve proof"
          },
          "state": {
            "mode": "color",
            "proof": "color",
            "approval": "approved"
          }
        }
      ]
    }
  ]
}
