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

Fix AWT error happening in GitHub actions #40

Open
josdem opened this issue Dec 11, 2024 · 0 comments
Open

Fix AWT error happening in GitHub actions #40

josdem opened this issue Dec 11, 2024 · 0 comments

Comments

@josdem
Copy link
Owner

josdem commented Dec 11, 2024

Context
GitHub actions is using a Linux/Ubuntu box without display capabilities, therefore running UI test cases is throwing an exception:

TestLoginWindow > shouldLoginByActionListener() FAILED
java.awt.HeadlessException at TestLoginWindow.java:39

Solution
Let's create a dummy display to avoid this error

Refenreces
https://arbitrary-but-fixed.net/2022/01/21/headless-gui-github-actions.html

@josdem josdem added this to the release 1.2.0 milestone Dec 11, 2024
@josdem josdem changed the title Fix awt error happening in GitHub actions Fix AWT error happening in GitHub actions Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant