Hacker News new | past | comments | ask | show | jobs | submit login

What about screenshot tests in the ci pipeline? Who updates those?

Is there a constant somewhere I can import in my unit tests so I can say “expect this header has no embedded js but says whatever Dave from Marketing wants”




Great question! It's definitely a use case we are thinking about. Anything from giving a better framework to this to updating the screenshot tests for you are viable options. About importing the copy to unit tests: it depends on your setup: for projects that have hardcoded copy, we update the copy inside the code, for projects that use I18N we update the I18N JSON/PO files.


What happens when they copy/paste from Word Doc a thousand <!-- StartFragment --> and other random BS Word injects?

Do you limit their changes to just plain text? Then they ask "Why doesn't the website look like the Word Doc I made? It looks perfect in Word!" Where is your God then?


You unit test header text content?


I mean it’s a webpage with html. I would like to know it’s producing the right html.

Not necessarily the content, but that the correct content is where you want it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: