From 9430c70d0d0516bc00fe98d796f0cf9290e66cb1 Mon Sep 17 00:00:00 2001 From: Felix Wiedenbach Date: Fri, 13 Sep 2019 15:44:38 +0200 Subject: [PATCH] it should render fading rows in weather forecast --- tests/e2e/modules/weather_spec.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/e2e/modules/weather_spec.js b/tests/e2e/modules/weather_spec.js index e2b3b7a9..47c9e58f 100644 --- a/tests/e2e/modules/weather_spec.js +++ b/tests/e2e/modules/weather_spec.js @@ -228,7 +228,19 @@ describe("Weather module", function() { } }); - it("should render fading of rows", function() {}); + it("should render fading of rows", async function() { + const weather = generateWeatherForecast(); + await setup([weather, template]); + + const opacities = [1, 1, 0.8, 0.5333333333333333, 0.2666666666666667]; + + await app.client.waitForExist('.weather table.small', 10000); + + for (const [index, opacity] of opacities.entries()) { + const html = await app.client.getHTML(`.weather table.small tr:nth-child(${index + 1})`); + expect(html).to.includes(``); + } + }); }); }); });