vendredi 1 décembre 2017

Angular 5 how to get Selected option text value from dorpdown in component test

In an Angular component test, how can the sect value of a Select/dropdown be retrieved in a test?

I can get the value using expect(selectElement.nativeElement.value).toBe('1'); but cant figure out how to get the Text value to test

Aucun commentaire:

Enregistrer un commentaire