https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41151

--- Comment #65 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 204759
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=204759&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.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to