molily/testing-angular

Misprint in code example

davayd opened this issue · 1 comments

I found a little mistake in a code example (https://testing-angular.com/testing-components/#querying-the-dom-with-test-ids)

// Find all elements with the class .user
const userElements = debugElement.query(By.css('.user'));

We need to use queryAll instead of just query

Thank you very much!