chore: wait a bit more
This commit is contained in:
parent
1f9f92ce05
commit
27f03d7a0a
2 changed files with 3 additions and 0 deletions
|
|
@ -68,6 +68,7 @@ public abstract class BaseTest extends ApplicationTest {
|
||||||
@AfterEach
|
@AfterEach
|
||||||
public void tearDown() throws Exception {
|
public void tearDown() throws Exception {
|
||||||
FxToolkit.cleanupStages();
|
FxToolkit.cleanupStages();
|
||||||
|
WaitForAsyncUtils.waitForFxEvents();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,10 @@ public class CRUDTest extends BaseTest {
|
||||||
}
|
}
|
||||||
@Test
|
@Test
|
||||||
public void changeRecipeNameDoesChangeName() {
|
public void changeRecipeNameDoesChangeName() {
|
||||||
|
WaitForAsyncUtils.waitForFxEvents();
|
||||||
ListView<Recipe> list = lookup("#recipeList").query();
|
ListView<Recipe> list = lookup("#recipeList").query();
|
||||||
clickOn("#addRecipeButton");
|
clickOn("#addRecipeButton");
|
||||||
|
WaitForAsyncUtils.waitForFxEvents();
|
||||||
write("TEST_RECIPE");
|
write("TEST_RECIPE");
|
||||||
type(KeyCode.ENTER);
|
type(KeyCode.ENTER);
|
||||||
WaitForAsyncUtils.waitForFxEvents();
|
WaitForAsyncUtils.waitForFxEvents();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue