Closed LorenzoBettini closed 2 years ago
Some UI tests involving the "PIT Mutations" view are flaky, especially in Windows and macOS. The toolbar buttons cannot be found, but that is due to the view itself not being active.
In particular, this condition does not seem to make sense:
class ViewOpenedCondition extends DefaultCondition { private SWTWorkbenchBot bot; private String viewTitle; public ViewOpenedCondition(SWTWorkbenchBot bot, String viewTitle) { this.bot = bot; this.viewTitle = viewTitle; } @Override public boolean test() throws Exception { return bot.viewByTitle(viewTitle) != null; }
since the return value of viewByTitle cannot be null. Instead, if we use as condition isActive on the returned view, we get the failing condition.
viewByTitle
isActive
The screenshots upon failures are of this shape (macOS, Windows and Linux, respectively):
meaning that the "PIT Mutations" view is not active at all.
Investigating in #203
Closed by #203
Some UI tests involving the "PIT Mutations" view are flaky, especially in Windows and macOS. The toolbar buttons cannot be found, but that is due to the view itself not being active.
In particular, this condition does not seem to make sense:
since the return value of
viewByTitle
cannot be null. Instead, if we use as conditionisActive
on the returned view, we get the failing condition.The screenshots upon failures are of this shape (macOS, Windows and Linux, respectively):
meaning that the "PIT Mutations" view is not active at all.
Investigating in #203