Many of us have been in one of the following situations:
A UI framework has been updated and the associated tests are red because the DOM has changed.
Testing a supposedly simple component becomes detective work because the DOM is complex, and as soon as the test works, point 1. reappears.
For this, the Angular CDK offers a concept with which we can make our tests more stable and simpler. In short, we as component creators provide a simple and tested API that other developers can use to test our components safely – freed from the fear of breaking changes within the component.
In our session together, we'll take a deep look at the tools the Angular team gives us. We will start by looking at the component test harness of Angular Material and then develop our own component harnesses API. If we can do this well, we can finally put a smile on the faces of our fellow developers, even when it comes to testing. ;-)
Talk given at Developer Week 2023: https://www.developer-week.de/en/program/#/talk/component-test-harnesses