MCPcopy Create free account
hub / github.com/angular/angular / selectOptionViaUI

Function selectOptionViaUI

packages/forms/test/value_accessor_integration_spec.ts:547–552  ·  view source on GitHub ↗
(valueString: string)

Source from the content-addressed store, hash-verified

545 };
546
547 const selectOptionViaUI = (valueString: string): void => {
548 const select = fixture.debugElement.query(By.css('select'));
549 select.nativeElement.value = valueString;
550 dispatchEvent(select.nativeElement, 'change');
551 detectChangesAndTick();
552 };
553
554 const assertOptionElementSelectedState = (selectedStates: boolean[]): void => {
555 const options = fixture.debugElement.queryAll(By.css('option'));

Calls 4

dispatchEventFunction · 0.90
detectChangesAndTickFunction · 0.85
cssMethod · 0.80
queryMethod · 0.45

Tested by

no test coverage detected