3 ms·
On the web, you can use Selenium and pair it with either a headless browser like PhantomJS and/or a headless virtual machine running IE.
by Aqueous 13y ago
On the web, you can use Selenium and pair it with either a headless browser like PhantomJS and/or a headless virtual machine running IE.
- pjmlp 13y agoHow you validate if the CSS or HTML is rendered as supposed to be?
- Aqueous 13y agoYou look at it :-) (Edit: That's not the whole answer. Usually when you test you assert that certain elements of the DOM are where they should be. At the very least you have verified the structure of the HTML document, if not how it looks. For actual aesthetics I can't see any way around human testing.)
- pjmlp 13y agoI am just playing devil's advocate. I work for Fortune 500 consulting projects and don't believe in TDD for UI code that works across the myriad of technologies we use in work projects, while scaling across multi-site development. TDD only seems to work on the business logic, and only in code written with testing in mind.
- quadhome 13y agoYou have the computer look at it. Brett Slatkin of Google Consumer Surveys has a great talk on using perceptual diffs for this: https://air.mozilla.org/continuous-delivery-at-google/ https://air.mozilla.org/continuous-delivery-at-google/