Skip to content
Extraits de code Groupes Projets
Valider 7556c8c9 rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Attempt to fix UI test failure, make sure assets are cleared before and after Theme UI test.

parent 735ecebe
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -6,9 +6,16 @@ ...@@ -6,9 +6,16 @@
* @link http://piwik.org * @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/ */
var fs = require('fs');
describe("Theme", function () { describe("Theme", function () {
this.timeout(0); this.timeout(0);
function clearAssets() {
fs.removeTree(path.join(PIWIK_INCLUDE_PATH, 'tmp', 'assets'));
}
before(function () { before(function () {
testEnvironment.pluginsToLoad = ['ExampleTheme']; testEnvironment.pluginsToLoad = ['ExampleTheme'];
...@@ -20,6 +27,12 @@ describe("Theme", function () { ...@@ -20,6 +27,12 @@ describe("Theme", function () {
}; };
testEnvironment.save(); testEnvironment.save();
clearAssets();
});
after(function () {
clearAssets();
}); });
it("should use the current theme", function (done) { it("should use the current theme", function (done) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter