{
  "scenario": "Limits identifies a hub account whose usage read returns 429",
  "failsOnBase": true,
  "passesOnHead": true,
  "baseSha": "13226b1c21b703e1ddce8bd1d60ae54bca85ab42",
  "headSha": "8bc00df59dc976ee247feb6769e218dd0f88ce78",
  "steps": {
    "base": [
      {
        "step": "app.open <pairing link>",
        "status": "passed"
      },
      {
        "step": "expect.not.toHaveURL /\\/pair(?:[?#]|$)/",
        "status": "passed"
      },
      {
        "step": "app.open /settings/providers",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: \"Add hub\")",
        "status": "passed"
      },
      {
        "step": "locator.fill getByLabel(\"Hub URL\")",
        "status": "passed"
      },
      {
        "step": "locator.fill getByLabel(\"Management key\")",
        "status": "passed"
      },
      {
        "step": "locator.fill getByLabel(\"Label (optional)\")",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: \"Add hub\")",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByText(\"Team hub\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "app.open <pairing link>",
        "status": "passed"
      },
      {
        "step": "expect.not.toHaveURL /\\/pair(?:[?#]|$)/",
        "status": "passed"
      },
      {
        "step": "app.open /usage",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: \"Limits\")",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByText(\"Session\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: \"Refresh limits\")",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByRole(\"button\", name: \"Refresh limits\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "app.screenshot limits-after-refresh",
        "status": "passed"
      },
      {
        "step": "expect.toBeVisible getByText(/Team hub \u00b7 bob@example.com:.*HTTP 429/)",
        "status": "failed"
      }
    ],
    "head": [
      {
        "step": "app.open <pairing link>",
        "status": "passed"
      },
      {
        "step": "expect.not.toHaveURL /\\/pair(?:[?#]|$)/",
        "status": "passed"
      },
      {
        "step": "app.open /settings/providers",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: \"Add hub\")",
        "status": "passed"
      },
      {
        "step": "locator.fill getByLabel(\"Hub URL\")",
        "status": "passed"
      },
      {
        "step": "locator.fill getByLabel(\"Management key\")",
        "status": "passed"
      },
      {
        "step": "locator.fill getByLabel(\"Label (optional)\")",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: \"Add hub\")",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByText(\"Team hub\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "app.open <pairing link>",
        "status": "passed"
      },
      {
        "step": "expect.not.toHaveURL /\\/pair(?:[?#]|$)/",
        "status": "passed"
      },
      {
        "step": "app.open /usage",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: \"Limits\")",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByText(\"Session\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: \"Refresh limits\")",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByRole(\"button\", name: \"Refresh limits\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "app.screenshot limits-after-refresh",
        "status": "passed"
      },
      {
        "step": "expect.toBeVisible getByText(/Team hub \u00b7 bob@example.com:.*HTTP 429/)",
        "status": "passed"
      },
      {
        "step": "expect.toBeHidden getByText(\"PRIVATE_UPSTREAM_BODY_MUST_NOT_APPEAR\")",
        "status": "passed"
      },
      {
        "step": "app.open /settings/connections",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: \"Add environment\")",
        "status": "passed"
      },
      {
        "step": "locator.fill getByRole(\"dialog\") >> getByPlaceholder(\"backend.example.com\")",
        "status": "passed"
      },
      {
        "step": "locator.fill getByRole(\"dialog\") >> getByPlaceholder(\"PAIRCODE\")",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"dialog\") >> getByRole(\"button\", name: \"Add environment\")",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByPlaceholder(\"PAIRCODE\") \u2192 hidden",
        "status": "passed"
      },
      {
        "step": "app.open /usage",
        "status": "passed"
      },
      {
        "step": "locator.tap getByRole(\"button\", name: \"Refresh limits\")",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByRole(\"button\", name: /^BE: /).first() \u2192 visible",
        "status": "passed"
      },
      {
        "step": "locator.waitFor getByRole(\"button\", name: \"Refresh limits\") \u2192 visible",
        "status": "passed"
      },
      {
        "step": "expect.toBeHidden getByText(/bob@example.com:.*HTTP 429/)",
        "status": "passed"
      },
      {
        "step": "app.screenshot successful-second-environment-suppresses-notice",
        "status": "passed"
      }
    ]
  },
  "markdown": "### Scenario: Limits identifies a hub account whose usage read returns 429\n\n**Proven: the scenario fails on base `13226b1c21` and passes on head `8bc00df59d`.**\n\n|  | Base `13226b1c21` | Head `8bc00df59d` |\n| --- | --- | --- |\n| Result | \u274c failed<br>ASSERTION_FAILED: expect.toBeVisible failed<br>locator: getByText(/Team hub \u00b7 bob@example.com:.*HTTP 429/)<br>expected: visible<br>observed: no node (match count 0) | \u2705 passed |\n| limits after refresh | ![Base 13226b1c21: limits after refresh](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/1ff8ed66d087507d/001-limits-after-refresh.png) | ![Head 8bc00df59d: limits after refresh](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/ad0f43fc62b215ed/001-limits-after-refresh.png) |\n| failure | ![Base 13226b1c21: failure](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/ce673ca21e34e181/002-failure.png) |  |\n| successful second environment suppresses notice |  | ![Head 8bc00df59d: successful second environment suppresses notice](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/2874f6a5f905ea3c/002-successful-second-environment-suppresses-notice.png) |\n"
}