Releases: alyssaruth/swing-test
Releases · alyssaruth/swing-test
v4.0.0
💥 Breaking changes 💥
- Changed all interactions to take place on the Event thread, using
invokeAndWait
by default. awaitCondition
replaced withwaitForAssertion
. This now expects an assertion to be passed in rather than a boolean method, for better logging on failure.
🔧 Other changes 🔧
- New
findWindow
helper, along with README guidance on testing with windows and modals. - Added component trees for debugging - these are automatically logged for various failed assertions
- Added a few other convenience methods like
clickOk()
andclickCancel()
v3.1.0
v3.0.0
🔧 Changes 🔧
- Pulled in image-comparison for snapshot testing to allow tolerances and more helpful diagnostics on failure
v2.0.0
v1.0.0
💥 Breaking changes 💥
- Screenshot tests now look for system properties rather than environment variables (
updateScreenshots
andscreenshotOs
) - Ported to JUnit5, meaning test skipping for wrong screenshot OS won't work for JUnit4 projects
🔧 Other changes 🔧
- Make helper extensions work on generic
Component
, rather thanJComponent
- Couple of specific helpers for
JCheckBox
awaitCondition
helper - more useful in "E2E" type scenarios, e.g. click a button and then tell the test to wait until a certain screen state is achieved before continuing.
Initial release
First release to jcenter
. Pretty basic offering to get this started, including:
Container.findChild<T>
,Container.getChild<T>
,Container.clickChild<T>
Component.shouldBeEnabled
,Component.shouldBeVisible
Component.doubleClick()
,Component.doClick()
,Component.doHover()
, ...- Snapshot testing (PNG files)