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

--- Comment #73 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211769
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211769&action=edit
Bug 41151: (QA follow-up) Update the additional fields Cypress spec for the new
markup

The patches on this bug restructure the additional fields components
but t/cypress/integration/AdditionalFields_spec.ts was not updated, so
12 of its 13 tests fail:

- AdditionalFieldsDisplay and AdditionalFieldsEntry no longer render a
  fieldset with id="additional_fields": their rows are list items of
  the parent form, under a .additional-fields-header item
- repeated values are shown as a list (datatables) or as one
  .value-item per value (detail pages) instead of a comma separated
  string
- the inputs sit in an .input-with-clear-wrapper and are cleared with
  the new .clear-button instead of the .clear_attribute trash can link

Update the selectors and assertions to match. Also give the "New"
button back its clone_attribute class, which the restyling dropped, as
a stable hook for tests and for anyone restyling the form.

To test:
1. Apply the patches, yarn js:build
2. Run the Cypress spec
   t/cypress/integration/AdditionalFields_spec.ts
   => All tests pass (before: 12 failures)
3. ERM > Agreements > Edit an agreement with a repeatable additional
   field
   => The "New" button adds another value, as before

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

-- 
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