/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */

/* global add_heuristic_tests */

"use strict";

add_heuristic_tests([
  {
    fixtureData: `
        <html>
        <body>
          <form>
            <input type="text" id="name" autocomplete="name"/>
            <input type="text" id="country" autocomplete="country"/>
            <label for="test1">sender-address</label>
            <input type="text" id="test1"/>
            <input type="text" id="test2" name="sender-address"/>
          </form>
        </body>
        </html>`,
    expectedResult: [
      {
        default: {
          reason: "regex-heuristic",
        },
        description: `Only "sender-address" keywords in labels"`,
        fields: [
          { fieldName: "name", reason: "autocomplete" },
          { fieldName: "country", reason: "autocomplete" },
          { fieldName: "address-line1" },
        ],
      },
    ],
  },
]);
