[
{"name": "pounds: £ as an aria-hidden prefix, a decimal keyboard, no spell check", "args": [{"id": "amount", "label": "Amount, in pounds", "currency": "GBP", "locale": "en-GB", "rules": {"label": "Amount", "required": true, "min": 100, "max": 1000000, "allowNegative": false}}], "expect": "
£
"},
{"name": "kronor in sv-SE: kr is written after the amount, so it is a suffix", "args": [{"id": "belopp", "label": "Amount, in kronor", "currency": "SEK", "locale": "sv-SE", "rules": {"label": "Amount", "required": true, "min": null, "max": null, "allowNegative": false}, "value": "1 234,50"}], "expect": "
kr
"},
{"name": "a hint and a controlled value", "args": [{"id": "amount", "label": "Amount, in pounds", "currency": "GBP", "locale": "en-GB", "rules": {"label": "Amount", "required": true, "min": 100, "max": 1000000, "allowNegative": false}, "hint": "For example, 1,234.50", "value": "1,234.50"}], "expect": "
For example, 1,234.50
£
"},
{"name": "empty and required with showError: Enter amount", "args": [{"id": "amount", "label": "Amount, in pounds", "currency": "GBP", "locale": "en-GB", "rules": {"label": "Amount", "required": true, "min": 100, "max": 1000000, "allowNegative": false}, "showError": true, "value": ""}], "expect": "
Error: Enter amount
£
"},
{"name": "below the minimum with showError: the amount in the message", "args": [{"id": "amount", "label": "Amount, in pounds", "currency": "GBP", "locale": "en-GB", "rules": {"label": "Amount", "required": true, "min": 100, "max": 1000000, "allowNegative": false}, "showError": true, "value": "0.50"}], "expect": "
Error: Amount must be between £1.00 and £10,000.00
£
"},
{"name": "too many decimal places for the currency", "args": [{"id": "amount", "label": "Amount, in pounds", "currency": "GBP", "locale": "en-GB", "rules": {"label": "Amount", "required": true, "min": 100, "max": 1000000, "allowNegative": false}, "showError": true, "value": "12.345"}], "expect": "
Error: Amount must not have more than 2 decimal places