diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d7cdfd77d..80f9d868c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ _This release is scheduled to be released on 2023-04-01._ - Fix message display with HTML code into alert module (#2828) - Fix typo into french translation - Yr wind direction is no longer inverted +- The wind direction arrow now points in the direction the wind is flowing, not into the wind. ## [2.22.0] - 2023-01-01 diff --git a/modules/default/weather/current.njk b/modules/default/weather/current.njk index 7da92d5593..db6eac7756 100644 --- a/modules/default/weather/current.njk +++ b/modules/default/weather/current.njk @@ -7,7 +7,7 @@ {% if config.showWindDirection %} {% if config.showWindDirectionAsArrow %} - + {% else %} {{ current.cardinalWindDirection() | translate }} {% endif %} diff --git a/tests/e2e/modules/weather_current_spec.js b/tests/e2e/modules/weather_current_spec.js index 97ae3eec85..6cea8e152f 100644 --- a/tests/e2e/modules/weather_current_spec.js +++ b/tests/e2e/modules/weather_current_spec.js @@ -46,7 +46,7 @@ describe("Weather module", () => { }); it("should render windDirection with an arrow", async () => { - const elem = await helpers.waitForElement(".weather .normal.medium sup i.fa-long-arrow-alt-up"); + const elem = await helpers.waitForElement(".weather .normal.medium sup i.fa-long-arrow-alt-down"); expect(elem).not.toBe(null); expect(elem.outerHTML).toContain("transform:rotate(250deg);"); });