[wp-trac] [WordPress Trac] #58416: Media Title field should soft wrap in Media Modal: For better readability/editing of long titles.
WordPress Trac
noreply at wordpress.org
Wed May 31 21:31:13 UTC 2023
#58416: Media Title field should soft wrap in Media Modal: For better
readability/editing of long titles.
-------------------------------------------------+-------------------------
Reporter: abitofmind | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Media | Version: 6.2.2
Severity: normal | Resolution:
Keywords: has-patch has-screenshots has- | Focuses:
testing-info needs-testing needs-unit-tests | administration
-------------------------------------------------+-------------------------
Comment (by abitofmind):
Thanks for your test report!
Could you please send me the credentials to your WP test instance via
Slack PM, so that I as a software tester can test it myself independently
from you?
If not, then please you run the following tests and record them on video
and while your test steps clearly state aloud in the audio or show via key
visualizer what you currently do on your keyboard.
== Test plan for this feature
For manual testing. And possibly also the blueprint for the unit tests:
1. Type long enough text that the text auto wraps. Remove text again to
see it wrapping to fewer lines or a single line only eventually.
2. Resize the window so that we see how the textarea auto-resizes within
the available layout width.
3. Resize the textarea manually.
4. Demonstrate the client side linebreak avoidance.
- a) Press ENTER at the start of the string, middle of the string, end of
the string.
- b) A single time. And then again multiple consecutive times.
- c) Try all sort of new line control characters as used by the different
operating systems (LF on Unixes, CR MacOS Classic, CR-LF Windows).
- d) Also try with the ENTER vs. RETURN key.
- e) Also try inserting a multi line clipboard via ctrl-C (cmd-C on Mac).
- f) Try also to insert other forms of (unintentional) linebreaks, like
`\n`or `<br>` or `<p>Start of title</p><p>and later part of the
title</p>`. Not even mimicking bad user intents, just think copy paste
scenarios going wrong.
5. Demonstrate the server side linebreak avoidance:
- a) Try to play an intentional bad actor who submits the line break via
HTML form manipulation (GET and POST) or DOM manipulation (Inspect with
WebTools and manipulate linebreak there) and then show us the system
response (expected: validation message near field).
- b) Also simulate how that may happen without bad intent with a browser
back, browser forward event and a subsequent form re-submission, with any
of the input from test steps 4a-f.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58416#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list