#57 fixed a test

This commit is contained in:
Fabio Formosa
2022-11-04 00:18:22 +01:00
parent 459aa136c1
commit 3e90a9b22c

View File

@@ -77,13 +77,14 @@ describe('SimpleTriggerConfig', () => {
fixture.detectChanges();
}
function setMatSelectValueByIndex(componentDe: DebugElement, dropdownSelector: string, index: number) {
async function setMatSelectValueByIndex(componentDe: DebugElement, dropdownSelector: string, index: number) {
const dropdownDe = componentDe.query(By.css(dropdownSelector));
dropdownDe.nativeElement.click();
fixture.detectChanges();
const matOptionDe = componentDe.query(By.css('.mat-select-panel')).queryAll(By.css('.mat-option'));
matOptionDe[index].nativeElement.click();
fixture.detectChanges();
await fixture.whenStable();
}
function openFormAndFillAllMandatoryFields() {