From c630c387d67db3df453a0bc2492c747ffeaa40a8 Mon Sep 17 00:00:00 2001 From: Felix Wiedenbach Date: Fri, 13 Sep 2019 17:06:58 +0200 Subject: [PATCH] it should render colored rows --- tests/e2e/modules/weather_spec.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/e2e/modules/weather_spec.js b/tests/e2e/modules/weather_spec.js index abe4e3a0..be7a46e6 100644 --- a/tests/e2e/modules/weather_spec.js +++ b/tests/e2e/modules/weather_spec.js @@ -254,6 +254,17 @@ describe("Weather module", function() { await app.client.waitForExist(`.weather table.myTableClass`, 10000); }); + + it("should render colored rows", async function() { + const weather = generateWeatherForecast(); + await setup([weather, template]); + + await app.client.waitForExist(`.weather table.myTableClass`, 10000); + + const rows = await app.client.$$('.weather table.myTableClass tr.colored'); + + expect(rows.length).to.be.equal(5); + }); }); }); });