The presence of a print CSS stylesheet is particularly important in a web application I'm writing, with an expected 80%-100% of the user base likely to use it (it's an internal application, so I can be fairly sure of both the user requirements & technical capability).
I'm currently using Cypress to run end-to-end tests on the user interface. However, I'd like to also run them on the print stylesheet to ensure that it's also definitely working.
I've looked for a suitable command line argument in Google Chrome to force a media type, but couldn't find one. I also couldn't find any useful documentation about doing this for Cypress, although there was something for testing 'dark mode' stylesheets.
Anyway - automatic testing strategy for print CSS stylesheets. Is there one?
Aucun commentaire:
Enregistrer un commentaire