T13: the execution spec picks the mode through the Material select

This commit is contained in:
2026-12-01 02:25:00 -06:00
parent a1c079ce43
commit 9e50655d51
+7 -3
View File
@@ -29,9 +29,13 @@ describe('execution', () => {
expect(fixture.componentInstance.execution()).toEqual({ mode: 'local', scheduler: null }); expect(fixture.componentInstance.execution()).toEqual({ mode: 'local', scheduler: null });
expect(invoke).toHaveBeenCalledWith(executionHealth, { mode: 'local', scheduler: null }); expect(invoke).toHaveBeenCalledWith(executionHealth, { mode: 'local', scheduler: null });
const mode: HTMLSelectElement = fixture.nativeElement.querySelector('select'); const trigger: HTMLElement = fixture.nativeElement.querySelector('.mat-mdc-select-trigger');
mode.value = 'remote'; trigger.click();
mode.dispatchEvent(new Event('change')); fixture.detectChanges();
const remote = Array.from(document.querySelectorAll<HTMLElement>('mat-option')).find(
(option) => option.textContent?.trim() === 'Remoto',
);
remote!.click();
fixture.detectChanges(); fixture.detectChanges();
await fixture.whenStable(); await fixture.whenStable();
fixture.detectChanges(); fixture.detectChanges();