Fix failing test

This commit is contained in:
Kris De Volder
2020-11-20 12:49:24 -08:00
parent 72e8ea7536
commit a81aaed509

View File

@@ -508,18 +508,14 @@ public class BootDashActionTests {
return true;
}
};
when(ui().confirmOperation(eq("Deleting Elements"), anyString())).thenReturn(true);
when(ui().confirmWithToggle(anyString(), eq("Deleting Elements"), anyString(), anyString())).thenReturn(true);
action.run();
new ACondition("Wait for config deletion", 3000) {
public boolean test() throws Exception {
assertEquals(ImmutableSet.of(conf2), element.getLaunchConfigs());
assertFalse(conf1.exists());
assertTrue(element.getCurrentChildren().size()==1);
return true;
}
};
ACondition.waitFor("Wait for config deletion", 3000, () -> {
assertEquals(ImmutableSet.of(conf2), element.getLaunchConfigs());
assertFalse(conf1.exists());
assertTrue(element.getCurrentChildren().size()==1);
});
}