Skip to content

Commit 21c6dc8

Browse files
committed
Merge pull request #481 from JLLeitschuh/fix/windowsMainWindowTest
Adds a wait for FXEvents to try to fix tests on appveyor
2 parents e56a1a7 + 5d8af0e commit 21c6dc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/src/test/java/edu/wpi/grip/ui/MainWindowTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import org.junit.Test;
1111
import org.testfx.framework.junit.ApplicationTest;
1212
import org.testfx.matcher.base.NodeMatchers;
13+
import org.testfx.util.WaitForAsyncUtils;
1314

1415
import static org.testfx.api.FxAssert.verifyThat;
1516

@@ -42,6 +43,8 @@ public void testShouldCreateNewOperationInPipelineView() {
4243
// Given:
4344
clickOn("#add-operation");
4445

46+
WaitForAsyncUtils.waitForFxEvents();
47+
4548
// Then:
4649
verifyThat(".pipeline", NodeMatchers.hasChild(".add-step"));
4750
}

0 commit comments

Comments
 (0)