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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-03-16 04:41:28 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-03-16 04:41:28 +0300
commit1020053b55f397cbdd580a0116ca1f3bde37e7ba (patch)
tree545c03dc1981dc5d3323df954f59d1338d602c72 /plugins
parent4c00874590f38e2fc4ce6247f63d01bdb60ce1cd (diff)
Moved UI tests into main ui tests directory
Diffstat (limited to 'plugins')
-rw-r--r--plugins/CoreUpdater/Test/UI/DbUpdater_spec.js37
-rw-r--r--plugins/CoreUpdater/Test/UI/PiwikUpdater_spec.js34
-rw-r--r--plugins/CoreUpdater/Test/UI/expected-ui-screenshots/DbUpdater_main.pngbin129173 -> 0 bytes
-rw-r--r--plugins/CoreUpdater/Test/UI/expected-ui-screenshots/DbUpdater_updated.pngbin65142 -> 0 bytes
-rw-r--r--plugins/CoreUpdater/Test/UI/expected-ui-screenshots/PiwikUpdater_httpUpdateSuccess.pngbin26003 -> 0 bytes
-rw-r--r--plugins/CoreUpdater/Test/UI/expected-ui-screenshots/PiwikUpdater_httpsUpdateFail.pngbin49879 -> 0 bytes
-rw-r--r--plugins/CoreUpdater/Test/UI/expected-ui-screenshots/PiwikUpdater_newVersion.pngbin27898 -> 0 bytes
7 files changed, 0 insertions, 71 deletions
diff --git a/plugins/CoreUpdater/Test/UI/DbUpdater_spec.js b/plugins/CoreUpdater/Test/UI/DbUpdater_spec.js
deleted file mode 100644
index 54a3e8305a..0000000000
--- a/plugins/CoreUpdater/Test/UI/DbUpdater_spec.js
+++ /dev/null
@@ -1,37 +0,0 @@
-/*!
- * Piwik - free/libre analytics platform
- *
- * Installation screenshot tests.
- *
- * @link http://piwik.org
- * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- */
-
-describe("DbUpdater", function () {
- this.timeout(0);
-
- this.fixture = "Piwik\\Plugins\\CoreUpdater\\Test\\Fixtures\\DbUpdaterTestFixture";
-
- before(function () {
- testEnvironment.tablesPrefix = 'piwik_';
- testEnvironment.save();
- });
-
- it("should start the updater when an old version of Piwik is detected in the DB", function (done) {
- expect.screenshot("main").to.be.capture(function (page) {
- page.load("");
- page.evaluate(function () {
- $('p').each(function () {
- var replace = $(this).html().replace(/(?!1\.0)\d+\.\d+(\.\d+)?([\-a-z]*\d+)?/g, '');
- $(this).html(replace);
- });
- });
- }, done);
- });
-
- it("should show the donation form when the update process is complete", function (done) {
- expect.screenshot("updated").to.be.capture(function (page) {
- page.click('.submit');
- }, done);
- });
-});
diff --git a/plugins/CoreUpdater/Test/UI/PiwikUpdater_spec.js b/plugins/CoreUpdater/Test/UI/PiwikUpdater_spec.js
deleted file mode 100644
index 0e0e52f433..0000000000
--- a/plugins/CoreUpdater/Test/UI/PiwikUpdater_spec.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/*!
- * Piwik - free/libre analytics platform
- *
- * Installation screenshot tests.
- *
- * @link http://piwik.org
- * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- */
-
-describe("PiwikUpdater", function () {
- this.timeout(0);
-
- this.fixture = "Piwik\\Plugins\\CoreUpdater\\Test\\Fixtures\\FailUpdateHttpsFixture";
-
- var url = "?module=CoreUpdater&action=newVersionAvailable";
-
- it("should show a new version is available", function (done) {
- expect.screenshot("newVersion").to.be.capture(function (page) {
- page.load(url);
- }, done);
- });
-
- it("should offer to update over http when updating over https fails", function (done) {
- expect.screenshot("httpsUpdateFail").to.be.capture(function (page) {
- page.click('#updateAutomatically');
- }, done);
- });
-
- it("should show the update steps when updating over http succeeds", function (done) {
- expect.screenshot("httpUpdateSuccess").to.be.capture(function (page) {
- page.click('#updateUsingHttp');
- }, done);
- });
-});
diff --git a/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/DbUpdater_main.png b/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/DbUpdater_main.png
deleted file mode 100644
index dcf2f0a3ef..0000000000
--- a/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/DbUpdater_main.png
+++ /dev/null
Binary files differ
diff --git a/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/DbUpdater_updated.png b/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/DbUpdater_updated.png
deleted file mode 100644
index 2210de345e..0000000000
--- a/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/DbUpdater_updated.png
+++ /dev/null
Binary files differ
diff --git a/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/PiwikUpdater_httpUpdateSuccess.png b/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/PiwikUpdater_httpUpdateSuccess.png
deleted file mode 100644
index 9854feef8d..0000000000
--- a/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/PiwikUpdater_httpUpdateSuccess.png
+++ /dev/null
Binary files differ
diff --git a/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/PiwikUpdater_httpsUpdateFail.png b/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/PiwikUpdater_httpsUpdateFail.png
deleted file mode 100644
index 61286650b2..0000000000
--- a/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/PiwikUpdater_httpsUpdateFail.png
+++ /dev/null
Binary files differ
diff --git a/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/PiwikUpdater_newVersion.png b/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/PiwikUpdater_newVersion.png
deleted file mode 100644
index 483dde95f8..0000000000
--- a/plugins/CoreUpdater/Test/UI/expected-ui-screenshots/PiwikUpdater_newVersion.png
+++ /dev/null
Binary files differ