Closed robwebdev closed 6 years ago
In the current version, you can just invoke the component {{head-layout}}
in a component integration test and make the same sort of DOM assertions that you would do in any other component integration test...
Thanks, that works for integration testing. I was thinking from an acceptance test perspective though. I am changing properties on the head-data service during page transitions and want to test that everything is hooked up correctly.
Ah, thats easier. Just do normal DOM assertions on the contents in document.head
.
That works perfectly. For some reason I had assumed the head
of the qunit test page was not the place to be looking, but it is. Thanks!
Is there a recommended way to test the contents of the
head
?