MCPcopy
hub / github.com/angular/angular / selectOptionViaUI

Function selectOptionViaUI

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

Source from the content-addressed store, hash-verified

544 };
545
546 const selectOptionViaUI = (valueString: string): void => {
547 const select = fixture.debugElement.query(By.css('select'));
548 select.nativeElement.value = valueString;
549 dispatchEvent(select.nativeElement, 'change');
550 detectChangesAndTick();
551 };
552
553 const assertOptionElementSelectedState = (selectedStates: boolean[]): void => {
554 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…