Lukasz Lenart created WW-5775:
---------------------------------
Summary: Add intent tests for inputtransferselect and combobox
markup without inline handlers
Key: WW-5775
URL: https://issues.apache.org/jira/browse/WW-5775
Project: Struts 2
Issue Type: Task
Components: Unit Tests
Reporter: Lukasz Lenart
h2. Problem
WW-5772 adds targeted tests for {{optiontransferselect}} and {{updownselect}}
that assert no inline event handler is rendered and that a header key
containing a quote is emitted escaped in a {{data-struts-*}} attribute. There
is no equivalent for:
* {{inputtransferselect}} — {{data-struts-header-key}} on the move up/down
buttons
* {{combobox}} (simple and html5) — no inline {{onChange}}, the select carries
the {{data-struts-combobox}} marker, and the binding script carries the nonce
Today a regression in those templates is caught only by the expected-output
fixture files, which tend to be regenerated wholesale when a template changes.
h2. Proposal
Add intent-revealing assertions for both tags, mirroring the ones WW-5772 adds
to {{OptionTransferSelectTagTest}} and {{UpDownSelectTagTest}}.
Note: these tags are candidates for removal in 8.0.0; if that happens first,
this ticket can be closed with them.
Related: WW-5772
--
This message was sent by Atlassian Jira
(v8.20.10#820010)