jeudi 30 novembre 2017

Angular 5 component test get debugElement by ID

I have a component containing 3 select dropdowns with no css classes attached and a unique Id on each. In my component I want to get the elements as DebugElements so that I can test their states after various events have been triggered. From the Angular website there is debugElement.query(By.css('[attribute]'));. How can I get my dropdowns By.id

Aucun commentaire:

Enregistrer un commentaire