Pragmatists / ng-test-runner

MIT License
24 stars 1 forks source link

Throw error when selector matches more than one element and one is expected #1

Closed krzysztof-jelski closed 5 years ago

krzysztof-jelski commented 6 years ago

I verified that operations that use find in fact work on the first found element. Instead there should be an error raised that the selector matches more than one element.

It's also not in-line with the docs, as those claim the error will be raised.

Find uses debugElement.query, so in fact it's somehow related to how this function behaves.

HubertLegec commented 5 years ago

Will be fixed when #15 is merged.

HubertLegec commented 5 years ago

Fixed in v1.1.8