it should render min and max temperatures

This commit is contained in:
Felix Wiedenbach
2019-09-13 15:08:44 +02:00
parent 11e144ca64
commit f3e893fddb

View File

@@ -206,9 +206,27 @@ describe("Weather module", function() {
} }
}); });
it("should render max temperature", function() {}); it("should render max temperatures", async function() {
const weather = generateWeatherForecast();
await setup([weather, template]);
it("should render min temperature", function() {}); const temperatures = ["24.4°", "21.0°", "22.9°", "23.4°", "20.6°"];
for (const [index, temp] of temperatures.entries()) {
await app.client.waitUntilTextExists(`.weather table.small tr:nth-child(${index + 1}) td:nth-child(3)`, temp, 10000);
}
});
it("should render min temperatures", async function() {
const weather = generateWeatherForecast();
await setup([weather, template]);
const temperatures = ["15.3°", "13.6°", "13.8°", "13.9°", "10.9°"];
for (const [index, temp] of temperatures.entries()) {
await app.client.waitUntilTextExists(`.weather table.small tr:nth-child(${index + 1}) td:nth-child(4)`, temp, 10000);
}
});
it("should render fading of rows", function() {}); it("should render fading of rows", function() {});
}); });