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:
authormattab <matthieu.aubry@gmail.com>2016-10-07 23:35:34 +0300
committermattab <matthieu.aubry@gmail.com>2016-10-07 23:35:34 +0300
commit37e362c59c3af47a997e3ef2123aff6e30aeb523 (patch)
treec4baa81125331d76d851c69c5bd07e778ebec194 /tests/UI/specs
parentaa5596d554f93527830c70606fa2be8c84311bef (diff)
waiting in places where ui tests randomly fail
Diffstat (limited to 'tests/UI/specs')
-rw-r--r--tests/UI/specs/SegmentSelectorEditor_spec.js8
-rw-r--r--tests/UI/specs/UIIntegration_spec.js9
2 files changed, 12 insertions, 5 deletions
diff --git a/tests/UI/specs/SegmentSelectorEditor_spec.js b/tests/UI/specs/SegmentSelectorEditor_spec.js
index ca69e4bd7e..2d8d3917d9 100644
--- a/tests/UI/specs/SegmentSelectorEditor_spec.js
+++ b/tests/UI/specs/SegmentSelectorEditor_spec.js
@@ -26,13 +26,17 @@ describe("SegmentSelectorEditorTest", function () {
it("should open selector when control clicked", function (done) {
expect.screenshot("1_selector_open").to.be.captureSelector(selectorsToCapture, function (page) {
page.click('.segmentationContainer .title');
+ page.wait(1000);
}, done);
});
it("should open segment editor when edit link clicked for existing segment", function (done) {
+ this.retries(2);
expect.screenshot("2_segment_editor_update").to.be.captureSelector(selectorsToCapture, function (page) {
- page.click('.segmentList .editSegment:first');
- page.wait(3000);
+ setTimeout(function () {
+ page.click('.segmentList .editSegment:first');
+ });
+ page.wait(1000);
}, done);
});
diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js
index 741f89037d..3365f2b545 100644
--- a/tests/UI/specs/UIIntegration_spec.js
+++ b/tests/UI/specs/UIIntegration_spec.js
@@ -373,6 +373,7 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik?
});
it('should load the widgetized all websites dashboard correctly', function (done) {
+ this.retries(3);
expect.screenshot('widgetize_allwebsites').to.be.capture(function (page) {
page.load("?" + widgetizeParams + "&" + generalParams + "&moduleToWidgetize=MultiSites&actionToWidgetize=standalone");
}, done);
@@ -705,13 +706,15 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik?
var url = "?module=CoreHome&action=index&idSite=1&period=year&date=2012-01-13#?category=General_Visitors&subcategory=CustomVariables_CustomVariables&idSite=1&period=year&date=2012-01-13";
expect.page(url).contains('.ui-dialog > .ui-dialog-content > div.dataTableVizVisitorLog:visible', 'segmented_visitorlog', function (page) {
page.click('.segmentationTitle');
+ page.wait(500);
page.click('.segname:contains(From Europe)');
-
+ page.wait(500);
page.mouseMove('table.dataTable tbody tr:first-child');
+ page.wait(500);
page.mouseMove('a.actionSegmentVisitorLog:visible'); // necessary to get popover to display
+ page.wait(500);
page.click('a.actionSegmentVisitorLog:visible');
-
- page.wait(3000);
+ page.wait(1000);
}, done);
});