Is GUI code that 0.1%?
Because I am always keen to understand how to TDD GUI code and I don't mean the data model behind the pixels.
Because I am always keen to understand how to TDD GUI code and I don't mean the data model behind the pixels.
I usually find I build a general page object first ('this text is somewhere on the page'), then write the UI, then make the test more specific if I can after (but it's an art, as too specific and you risk creating too many false negatives when you make UI changes).
(Also as you are interacting with the UI, these would be known as integration tests.)
[1] https://semaphoreci.com/community/tutorials/using-page-objec...
Which is why it is my main question on TDD talks, that always use some library or CLI app as example.
Edit: Slides from the talk I saw: http://slides.com/bahmutov/snapshot-testing