Closed hfazai closed 2 years ago
I tested a bit and there seem to be no harm in doing UI.getCurrent().pushConfiguration.pushMode = PushMode.AUTOMATIC
by default. Therefore, that's what Karibu-Testing will do, starting from 1.3.1. However, if this change breaks something, just let me know and I'll revert the code and mention this in the docs.
Fixed in Karibu-Testing 1.3.1.
With the manual mode, we should call
push()
explicitly to push the pending changes of theUI
.In my test it throws this exception:
It looks like
MockedUI
didn't set the push mode during setup. it's always =PushMode.DISABLED
So, I could workaround it with setting manually the push mode after setup
If this is the best way to do it, maybe we can add it to the Karibu-Testing doc in the Async updates section?