Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI-Tests are broken under MacOS #263

Open
kaklakariada opened this issue Sep 18, 2023 · 0 comments
Open

UI-Tests are broken under MacOS #263

kaklakariada opened this issue Sep 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kaklakariada
Copy link
Contributor

When running UI-Tests in non-headless mode under macOS with the following command:

./gradlew jfxui:uiTest -i --tests AutomaticInterruptionTest  -PuiTestsHeadless=false

the tests fail with the following error:

AutomaticInterruptionTest > stopWorkingForTodayButtonDoesNotAddInterruptionDoesNotUpdateEnd() FAILED
    java.lang.AssertionError: Expected: Window is not showing
         but: javafx.scene.control.HeavyweightDialog$1@38fb76a5
        at org.testfx.assertions.impl.Adapter$1.matches(Adapter.java:55)
        at org.assertj.core.internal.Conditions.assertIs(Conditions.java:61)
        at org.assertj.core.api.AbstractAssert.is(AbstractAssert.java:433)
        at org.testfx.assertions.api.AbstractWindowAssert.isNotShowing(AbstractWindowAssert.java:52)
        at org.itsallcode.whiterabbit.jfxui.testutil.model.AutomaticInterruptionDialog.clickStopWorkForToday(AutomaticInterruptionDialog.java:51)
        at org.itsallcode.whiterabbit.jfxui.AutomaticInterruptionTest.lambda$stopWorkingForTodayButtonDoesNotAddInterruptionDoesNotUpdateEnd$2(AutomaticInterruptionTest.java:59)
        at org.itsallcode.whiterabbit.jfxui.AutomaticInterruptionTest.simulateInterruption(AutomaticInterruptionTest.java:78)
        at org.itsallcode.whiterabbit.jfxui.AutomaticInterruptionTest.stopWorkingForTodayButtonDoesNotAddInterruptionDoesNotUpdateEnd(AutomaticInterruptionTest.java:59)

The same tests run successfully under Linux.

@kaklakariada kaklakariada added the bug Something isn't working label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To do
Development

No branches or pull requests

1 participant