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
path: root/tests
diff options
context:
space:
mode:
authorMatthieu Aubry <mattab@users.noreply.github.com>2017-10-06 01:18:11 +0300
committerGitHub <noreply@github.com>2017-10-06 01:18:11 +0300
commit11de54ca12d2a46e74cf190a65a848e0356dd470 (patch)
tree2aebb8639a2a79ff3d8fb651d1353b40e766a3fa /tests
parenta834a8609f8fa61dec72398feea119467908352f (diff)
Retry the Live UI tests to avoid random fails (#12120)
* Retry the Live UI tests to avoid random fails * Don't skip this as maybe phantomjs fixed this bug? * skipped as phantom seems to crash at this test * retry the dashboard3 ui test which has random fails * retry the ActionsDataTable suite * // this test often fails for unknown reasons? // the visitor log with site search is also currently tested in plugins/Live/tests/UI/expected-ui-screenshots/Live_visitor_log.png * remove global retry as for some reasons it triggers 2) Live should show visitor log: done() called multiple times
Diffstat (limited to 'tests')
-rw-r--r--tests/UI/specs/ActionsDataTable_spec.js2
-rw-r--r--tests/UI/specs/UIIntegration_spec.js7
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/UI/specs/ActionsDataTable_spec.js b/tests/UI/specs/ActionsDataTable_spec.js
index 17e2743e5e..a647dac400 100644
--- a/tests/UI/specs/ActionsDataTable_spec.js
+++ b/tests/UI/specs/ActionsDataTable_spec.js
@@ -8,6 +8,8 @@
*/
describe("ActionsDataTable", function () {
+ this.retries(3);
+
this.timeout(0);
var url = "?module=Widgetize&action=iframe&idSite=1&period=year&date=2012-08-09&moduleToWidgetize=Actions&actionToWidgetize=getPageUrls&isFooterExpandedInDashboard=1";
diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js
index 814a8526b5..aa32cb4109 100644
--- a/tests/UI/specs/UIIntegration_spec.js
+++ b/tests/UI/specs/UIIntegration_spec.js
@@ -62,6 +62,7 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik?
});
it("should load dashboard3 correctly", function (done) {
+ this.retries(3);
expect.screenshot("dashboard3").to.be.captureSelector('.pageWrap', function (page) {
page.load("?" + urlBase + "#?" + generalParams + "&category=Dashboard_Dashboard&subcategory=3");
}, done);
@@ -96,14 +97,14 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik?
// skipped as phantom seems to crash at this test sometimes
it.skip('should load visitors > visitor log page correctly', function (done) {
- this.retries(3);
expect.screenshot("visitors_visitorlog").to.be.captureSelector('.pageWrap', function (page) {
page.load("?" + urlBase + "#?" + generalParams + "&category=General_Visitors&subcategory=Live_VisitorLog");
}, done);
});
- it('should load visitors with site search > visitor log page correctly', function (done) {
- this.retries(3);
+ // this test often fails for unknown reasons?
+ // the visitor log with site search is also currently tested in plugins/Live/tests/UI/expected-ui-screenshots/Live_visitor_log.png
+ it.skip('should load visitors with site search > visitor log page correctly', function (done) {
expect.screenshot("visitors_with_site_search_visitorlog").to.be.captureSelector('.pageWrap', function (page) {
page.load("?" + urlBase + "#?" + generalParams + "&category=General_Visitors&subcategory=Live_VisitorLog&period=day&date=2012-01-11");
}, done);