3 ms·
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
by nkingsy 4y ago
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”
- iddan 4y agoGreat 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.
- halfjoking 4y agoWhat 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?
- toqy 4y agoYou unit test header text content?
- nkingsy 4y agoI 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.