alphagov / govuk-frontend

GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.
https://frontend.design-system.service.gov.uk/
MIT License
1.17k stars 320 forks source link

Add template tests for `beforeInput(s)` / `afterInput(s)` options #5020

Open 36degrees opened 4 months ago

36degrees commented 4 months ago

What

Add template tests to ensure that the beforeInput and afterInput options behave as expected for:

Why

These new options were introduced in #4567 but no corresponding tests were added. We should add examples and tests to ensure that they work as expected; so that port maintainers are more likely to match the behaviour and to avoid accidental regressions in the future.

Who needs to work on this

Developers

Who needs to review this

Developers

Done when

We have tests for the beforeInput(s) / afterInput(s) options on: