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:
authorThomas Steur <thomas.steur@gmail.com>2015-02-04 01:32:19 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-02-04 01:32:19 +0300
commit5197c5867a9ce66f84ab5872bde671b0f4d51cfc (patch)
tree097005729ab36041f6d40115a8137e5df8f778e3 /tests
parent0a18e1977e82b3a2b80dc2b1acbe2a277abe1353 (diff)
fixed some mentions of piwik-ui-tests repo which I just disabled on Travis
Diffstat (limited to 'tests')
-rw-r--r--tests/README.screenshots.md12
-rw-r--r--tests/UI/screenshot-diffs/diffgenerator.js2
-rw-r--r--tests/lib/screenshot-testing/support/diff-viewer.js2
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/README.screenshots.md b/tests/README.screenshots.md
index 07ed286537..8769dc738b 100644
--- a/tests/README.screenshots.md
+++ b/tests/README.screenshots.md
@@ -18,7 +18,7 @@ then you should update the expected screenshots accordingly.
To fix a broken build, follow these steps:
- * Go to the UI tests travis build: [https://travis-ci.org/piwik/piwik-ui-tests](https://travis-ci.org/piwik/piwik-ui-tests)
+ * Go to the Tests travis build: [https://travis-ci.org/piwik/piwik](https://travis-ci.org/piwik/piwik) and select the build containing `TEST_SUITE=UITests`
* Find the build you are interested in. The UI tests build will be run for each commit in each branch, so if you're
looking to resolve a specific failure, you'll have to find the build for the commit you've made.
* In the build output, at the beginning of the test output, there will be a link to a image diff viewer. It will look something
@@ -38,7 +38,7 @@ To fix a broken build, follow these steps:
_Note: When determining whether a screenshot is correct, the data displayed is not important. Report data correctness is verified through System and other PHP tests. The UI tests should only test UI behavior._
* Push the changes (to your code and/or to the expected-ui-screenshots directory.
- * Wait for next UI Tests build [on travis](https://travis-ci.org/piwik/piwik-ui-tests). Hopefully, the build should be green!
+ * Wait for next Test build [on travis](https://travis-ci.org/piwik/piwik). Hopefully, the build should be green!
_Note: the **development:sync-ui-test-screenshots** console command can be used to speed up the process. Run **./console help development:sync-ui-test-screenshots** to learn more._
@@ -110,7 +110,7 @@ The following options may be useful if you plan on running the UI tests locally
UI screenshot tests are run directly by phantomjs and are written using [mocha](http://visionmedia.github.io/mocha/) and [chai](http://chaijs.com).
-To create a new test, first decide whether it will belong to Piwik Core or a plugin. If it will belong to Piwik Core, the test should be placed within the [piwik-ui-tests](https://github.com/piwik/piwik-ui-tests) repository. Otherwise, it should be placed within tests/UI sub-directory of your plugin.
+To create a new test, first decide whether it will belong to Piwik Core or a plugin. If it will belong to Piwik Core, the test should be placed within the `/tests/UI` directory. Otherwise, it should be placed within `tests/UI sub-directory of your plugin.
All test files should have \_spec.js file name suffixes (for example, **ActionsDataTable\_spec.js**).
@@ -230,9 +230,9 @@ _Note: the Piwik environment is not initialized when the **TestingEnvironment.ad
The following are examples of test environment manipulation:
- * [Overlay_spec.js](https://github.com/piwik/piwik-ui-tests/blob/master/specs/Overlay_spec.js)
- * [Dashboard_spec.js](https://github.com/piwik/piwik-ui-tests/blob/master/specs/Dashboard_spec.js)
- * [Login_spec.js](https://github.com/piwik/piwik-ui-tests/blob/master/specs/Login_spec.js)
+ * [Overlay_spec.js](https://github.com/piwik/piwik/blob/master/tests/UI/specs/Overlay_spec.js)
+ * [Dashboard_spec.js](https://github.com/piwik/piwik/blob/master/tests/UI/specs/Dashboard_spec.js)
+ * [Login_spec.js](https://github.com/piwik/piwik/blob/master/tests/UI/specs/Login_spec.js)
## Learn more
diff --git a/tests/UI/screenshot-diffs/diffgenerator.js b/tests/UI/screenshot-diffs/diffgenerator.js
index f88ece732e..78063a6674 100644
--- a/tests/UI/screenshot-diffs/diffgenerator.js
+++ b/tests/UI/screenshot-diffs/diffgenerator.js
@@ -34,7 +34,7 @@ function compareImages(expected, expectedGithub, processed)
$('.processed').attr('src', encodeURI(processed));
$('.expected').attr('src', encodeURI(expected));
- $('.expectedGithub').attr('src', 'https://raw.githubusercontent.com/piwik/piwik-ui-tests/master/expected-ui-screenshots/' + encodeURI(expectedGithub));
+ $('.expectedGithub').attr('src', 'https://raw.githubusercontent.com/piwik/piwik-ui-tests/master/' + encodeURI(expectedGithub));
}
function getUrlQueryParam(sParam) {
diff --git a/tests/lib/screenshot-testing/support/diff-viewer.js b/tests/lib/screenshot-testing/support/diff-viewer.js
index 9fff623930..7910887fdd 100644
--- a/tests/lib/screenshot-testing/support/diff-viewer.js
+++ b/tests/lib/screenshot-testing/support/diff-viewer.js
@@ -21,7 +21,7 @@ DiffViewerGenerator.prototype.getDiffPath = function (testInfo) {
return path.resolve(path.join(baseDir, config.screenshotDiffDir, testInfo.name + '.png'));
};
-// TODO: diff output path shouldn't be stored in piwik-ui-tests repo
+// TODO: diff output path shouldn't be stored in piwik repo
DiffViewerGenerator.prototype.getUrlForPath = function (path) {
return fs.relpath(path, this.diffDir);
};