{
  "site": "demo-app",
  "baseUrl": "demo-app",
  "concurrency": 2,
  "settleMs": 250,
  "journeys": [
    {
      "id": "demo-app-order-with-promo",
      "goal": "Place an order for the item in the cart using the email qa@example.com and the promo code SAVE10, and reach the order confirmation.",
      "tags": ["form", "button"],
      "steps": [
        { "do": "navigate", "url": "/" },
        { "do": "click", "locator": { "role": "button", "name": "Checkout", "exact": true } },
        { "do": "fill", "locator": { "label": "Email" }, "value": "qa@example.com" },
        { "do": "fill", "locator": { "label": "Promo code" }, "value": "SAVE10" },
        { "do": "click", "locator": { "role": "button", "name": "Place order" } }
      ]
    },
    {
      "id": "demo-app-order-no-promo",
      "goal": "Check out the cart with the email qa@example.com without entering a promo code, and confirm the order.",
      "tags": ["form", "button"],
      "steps": [
        { "do": "navigate", "url": "/" },
        { "do": "click", "locator": { "role": "button", "name": "Checkout", "exact": true } },
        { "do": "fill", "locator": { "label": "Email" }, "value": "qa@example.com" },
        { "do": "click", "locator": { "role": "button", "name": "Place order" } }
      ]
    },
    {
      "id": "demo-app-nav-continue",
      "goal": "From the navigation fixture page, continue to page A.",
      "tags": ["link"],
      "steps": [
        { "do": "navigate", "url": "/nav.html" },
        { "do": "click", "locator": { "role": "link", "name": "Continue to page A" } }
      ]
    },
    {
      "id": "demo-app-cart-checkout-now",
      "goal": "Start the checkout from the Cart page.",
      "tags": ["button"],
      "steps": [
        { "do": "navigate", "url": "/goes-to-form.html" },
        { "do": "click", "locator": { "role": "button", "name": "Checkout now" } }
      ]
    },
    {
      "id": "demo-app-edit-order-4521",
      "goal": "Open the edit action for order #4521 in the orders table.",
      "tags": ["table", "disambiguation"],
      "steps": [
        { "do": "navigate", "url": "/landmarks.html" },
        { "do": "click", "locator": { "role": "button", "name": "Edit", "within": { "css": "tr", "hasText": "Order #4521" } } }
      ]
    },
    {
      "id": "demo-app-enquiry-send",
      "goal": "Send the enquiry form with the name Ada Lovelace.",
      "tags": ["form"],
      "steps": [
        { "do": "navigate", "url": "/landmarks.html" },
        { "do": "fill", "locator": { "css": "input[name=fullName]" }, "value": "Ada Lovelace" },
        { "do": "click", "locator": { "role": "button", "name": "Send" } }
      ]
    },
    {
      "id": "demo-app-footer-account",
      "goal": "Open your account using the link in the page footer.",
      "tags": ["landmark", "disambiguation"],
      "steps": [
        { "do": "navigate", "url": "/landmarks.html" },
        { "do": "click", "locator": { "css": "footer a", "hasText": "Your account" } }
      ]
    },
    {
      "id": "demo-app-spa-list-detail",
      "goal": "In the single-page app, open the List view and then the Detail view.",
      "tags": ["nav", "spa"],
      "steps": [
        { "do": "navigate", "url": "/history/spa.html" },
        { "do": "click", "locator": { "role": "link", "name": "List", "exact": true } },
        { "do": "click", "locator": { "role": "link", "name": "Detail", "exact": true } }
      ]
    },
    {
      "id": "demo-app-search-brake-pads",
      "goal": "Search for \"brake pads\" from page one.",
      "tags": ["search", "form"],
      "steps": [
        { "do": "navigate", "url": "/history/one.html" },
        { "do": "fill", "locator": { "label": "Query" }, "value": "brake pads" },
        { "do": "click", "locator": { "role": "button", "name": "Search" } }
      ]
    },
    {
      "id": "demo-app-dropdown-country-italy",
      "goal": "Choose Italy as the country in the enquiry form.",
      "tags": ["dropdown", "custom-select"],
      "steps": [
        { "do": "navigate", "url": "/dropdown.html" },
        { "do": "click", "locator": { "role": "combobox", "name": "Country" } },
        { "do": "click", "locator": { "role": "option", "name": "Italy" } }
      ]
    }
  ]
}
