diff --git a/src/app/gobernanza/execution.spec.ts b/src/app/gobernanza/execution.spec.ts index d762293..1777c88 100644 --- a/src/app/gobernanza/execution.spec.ts +++ b/src/app/gobernanza/execution.spec.ts @@ -29,9 +29,13 @@ describe('execution', () => { expect(fixture.componentInstance.execution()).toEqual({ mode: 'local', scheduler: null }); expect(invoke).toHaveBeenCalledWith(executionHealth, { mode: 'local', scheduler: null }); - const mode: HTMLSelectElement = fixture.nativeElement.querySelector('select'); - mode.value = 'remote'; - mode.dispatchEvent(new Event('change')); + const trigger: HTMLElement = fixture.nativeElement.querySelector('.mat-mdc-select-trigger'); + trigger.click(); + fixture.detectChanges(); + const remote = Array.from(document.querySelectorAll('mat-option')).find( + (option) => option.textContent?.trim() === 'Remoto', + ); + remote!.click(); fixture.detectChanges(); await fixture.whenStable(); fixture.detectChanges();