{
  "name": "SRN Shopify Liquid variant component — local technical verification",
  "checkedAtDate": "2026-11-04",
  "authorship": "Original SRN technical example; not customer Shopify source.",
  "boundary": "No Shopify store authentication, Shopify server render, live Cart API, checkout, real order or customer-result verification. The HTML preview uses fixture data and the same JavaScript as the Liquid component.",
  "tooling": {
    "node": "24.14.0",
    "shopifyCli": "5.0.0",
    "themeCheckVersionOutput": "unknown (CLI did not report a separate engine version)",
    "jsdom": "29.0.1"
  },
  "themeCheck": {
    "command": "SHOPIFY_CLI_NO_ANALYTICS=1 CI=1 shopify theme check --path theme --config theme-check:recommended --fail-level warning --output json --no-input",
    "exitCode": 0,
    "valid": true,
    "issues": [],
    "errorCount": 0,
    "warningCount": 0,
    "infoCount": 0
  },
  "localTests": {
    "date": "2026-11-04",
    "environment": "Node.js v24.14.0 / jsdom 29.0.1",
    "scope": "Controlled local DOM and mocked transport. No Shopify store, API account, checkout, customer project or real order used.",
    "passed": true,
    "tests": [
      {
        "name": "Initial selected variant shows matching price and available action",
        "passed": true,
        "durationMs": 103
      },
      {
        "name": "Variant labels remain unchanged before and after every selection",
        "passed": true,
        "durationMs": 32
      },
      {
        "name": "Changing to another variant updates displayed price and stock",
        "passed": true,
        "durationMs": 13
      },
      {
        "name": "Unavailable variant disables action and displays stock state",
        "passed": true,
        "durationMs": 10
      },
      {
        "name": "Unavailable variant cannot submit a cart request",
        "passed": true,
        "durationMs": 21
      },
      {
        "name": "Local success checks quantity and variant, locks controls while pending",
        "passed": true,
        "durationMs": 381
      },
      {
        "name": "Pending state suppresses a duplicate submission",
        "passed": true,
        "durationMs": 47
      },
      {
        "name": "Cart error is shown as text, not success or HTML",
        "passed": true,
        "durationMs": 26
      },
      {
        "name": "Network uncertainty does not retry or claim cart success",
        "passed": true,
        "durationMs": 18
      },
      {
        "name": "Successful HTTP response without matching item is not treated as success",
        "passed": true,
        "durationMs": 12
      },
      {
        "name": "Zero and fractional quantity cannot reach cart request",
        "passed": true,
        "durationMs": 16
      },
      {
        "name": "Production adapter preserves locale and submits selected id plus quantity",
        "passed": true,
        "durationMs": 17
      },
      {
        "name": "Cart endpoint must belong to the same origin",
        "passed": true,
        "durationMs": 24
      },
      {
        "name": "All four local scenarios run without calling fetch",
        "passed": true,
        "durationMs": 1429
      },
      {
        "name": "Repeated DOM connection does not attach duplicate submit listeners",
        "passed": true,
        "durationMs": 8
      },
      {
        "name": "Unparseable cart response remains unconfirmed and unlocks controls",
        "passed": true,
        "durationMs": 8
      },
      {
        "name": "Liquid source uses native product form and shares tested DOM contract",
        "passed": true,
        "durationMs": 1
      }
    ]
  },
  "browserCheck": {
    "viewports": [
      {
        "width": 1440,
        "height": 1000
      },
      {
        "width": 390,
        "height": 844
      }
    ],
    "verified": [
      "Variant labels preserved",
      "Variant price and availability update",
      "Unavailable option disables action",
      "Pending controls lock",
      "Controlled success and stock error display",
      "No horizontal overflow",
      "No browser script errors"
    ],
    "boundary": "Local fixture preview, no real store requests."
  },
  "remainingStoreChecks": [
    "Liquid render with real product and selected variant",
    "Locale and currency formatting on Shopify",
    "Real inventory policy and Cart API responses",
    "Theme/app/cart drawer compatibility",
    "Any separately scoped checkout and order test"
  ],
  "scopeLimit": "Small variant list example; high variant counts, selling plans, bundles, custom line properties and complex pricing are not implemented.",
  "sourceZip": {
    "url": "https://www.srndijital.com/shopify-variant-demo-20261104-source-v1.zip",
    "sha256": "580354db1f8809ad077f3dbe771ba14a747991551224c2f9f03de2318b35dba0",
    "bytes": 12755
  },
  "javascriptSha256": "fcdcf921472839d759c2197a401473450203b26d30f5901ab573278790a47978",
  "sourceFiles": [
    {
      "path": "README.md",
      "sha256": "30f96e3cf2e19fa62ba0e1340d6ce4c8139d977e79e825503c363b0ae7447cee"
    },
    {
      "path": "interaction-tests.json",
      "sha256": "69cac3780910201c5117d45f864723bb72567f9b76b6649ed9c9a88163297f6c"
    },
    {
      "path": "package.json",
      "sha256": "7cfea42e8143140b5fe40b8a6d4f5f83395f960885e573f325e45995c5d204c9"
    },
    {
      "path": "preview-fixture.html",
      "sha256": "ca7f54a063ca20bf5cf8362c3c17ae951dc81b8d541e18381487c235108dcae2"
    },
    {
      "path": "test-component.cjs",
      "sha256": "79452617bc06fc6987e6069d5d470ef44c63d9eef140c8a6209105b78455b719"
    },
    {
      "path": "theme/assets/srn-variant-demo.css",
      "sha256": "a26a51d156c03f894c9628e6459d6632ffda3215efc9aecf9a4465e0974eb79b"
    },
    {
      "path": "theme/assets/srn-variant-demo.js",
      "sha256": "fcdcf921472839d759c2197a401473450203b26d30f5901ab573278790a47978"
    },
    {
      "path": "theme/config/settings_schema.json",
      "sha256": "a5917e34149bb151754a2bdfcfb8742ab2d6b5b9afcfe0e31764135fc3a64d94"
    },
    {
      "path": "theme/layout/theme.liquid",
      "sha256": "817999bea53fb0dc17e0c97b64682b7261c8f796da10c7fcd4e1a2f9cc1c8059"
    },
    {
      "path": "theme/locales/en.default.json",
      "sha256": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356"
    },
    {
      "path": "theme/sections/srn-variant-demo.liquid",
      "sha256": "1dd087121713bbaa957a038e53487598842e326028d0b92352317006eb6ad697"
    },
    {
      "path": "theme/templates/index.json",
      "sha256": "67546e55c5319f2950c13d5fcc701c4f4db1e62418148e995509de3f5b08b88d"
    },
    {
      "path": "theme/templates/product.json",
      "sha256": "ad08aa6d6670ec1e3b2b7036003dbbb1a3edbf38dc1b7ad150f78f4ad9c7d707"
    },
    {
      "path": "theme-check.json",
      "sha256": "cc6017310a6c0b0057d9837db95267dff577ef9b4aadacc0fc6607b23e5e169e"
    }
  ],
  "officialSources": [
    "https://shopify.dev/docs/storefronts/themes/tools/theme-check",
    "https://shopify.dev/docs/api/shopify-cli/theme/theme-check",
    "https://shopify.dev/docs/api/liquid/objects/variant",
    "https://shopify.dev/docs/api/liquid/objects/routes",
    "https://shopify.dev/docs/api/ajax/reference/cart"
  ]
}
