I'm trying to access the innerHTML of the wc "navbar-nv2" that is inside the shadowRoot of the wc "listproducts-nv2" however there are two different behaviors for the same test:
When I run all the tests I receive an error message "Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
But when I run the test individually it actually returns the content of shadowRoot to me and I can verify it in the console.
Although I am waiting for the fixture and for the component inside the shadowRoot using waitUntil. This is a bug that according to the documentation should wait using fixture/waitUntil.
Web component testing Group and unit testing
Aucun commentaire:
Enregistrer un commentaire