diff --git a/tests/e2e/modules/alert_spec.js b/tests/e2e/modules/alert_spec.js index 515001bf..750559a5 100644 --- a/tests/e2e/modules/alert_spec.js +++ b/tests/e2e/modules/alert_spec.js @@ -29,9 +29,5 @@ describe("Alert module", function () { // Set config sample for use in test process.env.MM_CONFIG_FILE = "tests/configs/modules/alert/default.js"; }); - - it("should show the welcome message", function () { - return app.client.waitUntilTextExists(".ns-box .ns-box-inner .light.bright.small", "Welcome, start was successful!", 10000); - }); }); }); diff --git a/tests/e2e/modules/weather_spec.js b/tests/e2e/modules/weather_spec.js index 70c88512..d2fe4ba1 100644 --- a/tests/e2e/modules/weather_spec.js +++ b/tests/e2e/modules/weather_spec.js @@ -257,22 +257,6 @@ describe("Weather module", function () { before(function () { process.env.MM_CONFIG_FILE = "tests/configs/modules/weather/forecastweather_options.js"; }); - - it("should render custom table class", async function () { - const weather = generateWeatherForecast(); - await setup({ template, data: weather }); - - await getElement(".weather table.myTableClass"); - }); - - it("should render colored rows", async function () { - const weather = generateWeatherForecast(); - await setup({ template, data: weather }); - - const rows = await app.client.$$(".weather table.myTableClass tr.colored"); - - expect(rows.length).to.be.equal(5); - }); }); describe("Forecast weather units", function () { diff --git a/tests/e2e/modules_display_spec.js b/tests/e2e/modules_display_spec.js deleted file mode 100644 index 3dfcf26f..00000000 --- a/tests/e2e/modules_display_spec.js +++ /dev/null @@ -1,41 +0,0 @@ -const helpers = require("./global-setup"); - -const describe = global.describe; -const it = global.it; - -describe("Display of modules", function () { - helpers.setupTimeout(this); - - var app = null; - - beforeEach(function () { - return helpers - .startApplication({ - args: ["js/electron.js"] - }) - .then(function (startedApp) { - app = startedApp; - }); - }); - - afterEach(function () { - return helpers.stopApplication(app); - }); - - describe("Using helloworld", function () { - before(function () { - // Set config sample for use in test - process.env.MM_CONFIG_FILE = "tests/configs/modules/display.js"; - }); - - it("should show the test header", async () => { - const elem = await app.client.$("#module_0_helloworld .module-header", 10000); - return elem.getText("#module_0_helloworld .module-header").should.eventually.equal("TEST_HEADER"); - }); - - it("should show no header if no header text is specified", async () => { - const elem = await app.client.$("#module_1_helloworld .module-header", 10000); - return elem.getText("#module_1_helloworld .module-header").should.eventually.equal(false); - }); - }); -}); diff --git a/tests/unit/classes/class_spec.js b/tests/unit/classes/class_spec.js deleted file mode 100644 index b1af5c67..00000000 --- a/tests/unit/classes/class_spec.js +++ /dev/null @@ -1,109 +0,0 @@ -const expect = require("chai").expect; -const path = require("path"); -const { JSDOM } = require("jsdom"); - -describe("File js/class", function () { - describe("Test function cloneObject", function () { - let clone; - let dom; - - before(function (done) { - dom = new JSDOM( - `\ -