ui_tests: change the waiting of a run stop button
@@ -83,8 +83,9 @@ public class RunsMenuAO implements AccessObject<RunsMenuAO> {
public RunsMenuAO stopRun(String runId) {
final SelenideElement runStopButton = $("#run-" + runId + "-stop-button");
runStopButton.waitUntil(enabled, 5000).click();
- if (!$(button("STOP")).waitUntil(visible, 5000).isEnabled()) {
- runStopButton.click();
+ sleep(3, SECONDS);
+ if (!$(button("STOP")).isEnabled()) {
+ runStopButton.waitUntil(enabled, 5000).click();
}
$(button("STOP")).click();
return this;
