Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/UI/specs/Overlay_spec.js')
-rw-r--r--tests/UI/specs/Overlay_spec.js15
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/UI/specs/Overlay_spec.js b/tests/UI/specs/Overlay_spec.js
index 578ddf3bba..5ca3eeaacd 100644
--- a/tests/UI/specs/Overlay_spec.js
+++ b/tests/UI/specs/Overlay_spec.js
@@ -70,17 +70,10 @@ describe("Overlay", function () {
it("should show stats for new links when dropdown opened", function (done) {
expect.screenshot("page_new_links").to.be.capture(function (page) {
- var pos = page.webpage.evaluate(function () {
- var iframe = $('iframe'),
- innerOffset = $('.dropdown-toggle', iframe.contents()).offset();
- return {
- x: iframe.offset().left + innerOffset.left + 32, // position is incorrect for some reason w/o adding pixels
- y: iframe.offset().top + innerOffset.top
- };
- });
- page.sendMouseEvent('click', pos);
- page.wait(2000);
-
+ page.reload(2500);
+ page.evaluate(function(){
+ $('.dropdown-toggle', $('iframe').contents())[0].click();
+ }, 500);
removeOptOutIframe(page);
}, done);
});