https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41151 --- Comment #48 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 197524 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197524&action=edit Bug 41151: Add Cypress tests for InputText/InputNumber clearable Covers the edge cases raised in QA review: - Clear button hidden when value is "" - Clear button visible and functional when value is populated - Clear button visible when value is the string "0" (InputText) - Clear button visible when value is the number 0 (InputNumber) — InputNumber uses an explicit null/undefined/"" check rather than plain truthiness so numeric zero does not suppress the button. - Icon is rendered as <i class="fa fa-xmark">, not an inline <svg>. InputText is exercised on the ERM Agreements add page (#name via FormElement type=text). InputNumber is exercised on the SIP2 institution add page (#retries, #timeout via FormElement type=number). To test: 1. yarn js:build && yarn css:build inside KTD. 2. npx cypress run --spec "t/cypress/integration/Vue/InputClearable_spec.ts" -> 7/7 passing. -- You are receiving this mail because: You are watching all bug changes.