diff --git a/tests/UI/expected-screenshots/Overlay_row_evolution.png b/tests/UI/expected-screenshots/Overlay_row_evolution.png index 5265eca9d0b31b23d321cc7ea5138a40809d154a..ec63a5201653e060cc5f7ff984d2227b39c660fb 100644 Binary files a/tests/UI/expected-screenshots/Overlay_row_evolution.png and b/tests/UI/expected-screenshots/Overlay_row_evolution.png differ diff --git a/tests/UI/expected-screenshots/Overlay_transitions.png b/tests/UI/expected-screenshots/Overlay_transitions.png index e53c5c9f41cc2e89126638f98181ed351a1fab0d..5500e75c6529ce54deb50c0d8dbee8c1494210f9 100644 Binary files a/tests/UI/expected-screenshots/Overlay_transitions.png and b/tests/UI/expected-screenshots/Overlay_transitions.png differ diff --git a/tests/UI/specs/Overlay_spec.js b/tests/UI/specs/Overlay_spec.js index 53888b14acf13eed403fa912b6ed67dae9215408..578ddf3bba0b8bb29487d45fdedeb78dd2c8df97 100644 --- a/tests/UI/specs/Overlay_spec.js +++ b/tests/UI/specs/Overlay_spec.js @@ -78,7 +78,8 @@ describe("Overlay", function () { y: iframe.offset().top + innerOffset.top }; }); - page.sendMouseEvent('click', pos, 2000); + page.sendMouseEvent('click', pos); + page.wait(2000); removeOptOutIframe(page); }, done); @@ -112,7 +113,9 @@ describe("Overlay", function () { it("should open row evolution popup when row evolution link clicked", function (done) { expect.screenshot("row_evolution").to.be.capture(function (page) { - page.click('#overlayRowEvolution'); + page.evaluate(function () { + $('#overlayRowEvolution').click(); + }, 500); page.evaluate(function () { $('.jqplot-xaxis').hide(); // xaxis will change every day so hide it }); @@ -123,8 +126,12 @@ describe("Overlay", function () { it("should open transitions popup when transitions link clicked", function (done) { expect.screenshot("transitions").to.be.capture(function (page) { - page.click('button.ui-dialog-titlebar-close'); - page.click('#overlayTransitions'); + page.evaluate(function () { + $('button.ui-dialog-titlebar-close').click(); + }, 500); + page.evaluate(function () { + $('#overlayTransitions').click(); + }, 500); removeOptOutIframe(page); }, done);