weather test for new absolute property

This commit is contained in:
Karsten Hassel
2022-01-07 21:32:12 +01:00
parent 24fccf6c44
commit cd1fe4e182
3 changed files with 44 additions and 0 deletions

View File

@@ -210,6 +210,20 @@ describe("Weather module", function () {
});
});
describe("Absolute configuration", function () {
beforeAll(function (done) {
startApp("tests/configs/modules/weather/forecastweather_absolute.js", {}, done);
});
it("should render days", function () {
const days = ["Fri", "Sat", "Sun", "Mon", "Tue"];
for (const [index, day] of days.entries()) {
getText(`.weather table.small tr:nth-child(${index + 1}) td:nth-child(1)`, day);
}
});
});
describe("Configuration Options", function () {
beforeAll(function (done) {
startApp("tests/configs/modules/weather/forecastweather_options.js", {}, done);