About Testing Rich-text Fields with Playwright
Playwright allows testing not only the common input fields, but also rich-text fields (the ones with contenteditable="true"
attribute).
For example, you can simulate typing, selecting all text, and making it bold as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Add some time.sleep(1)
calls between the actions to slow down the tests and be able to see what's going on visually.
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You