Skip to content

Commit

Permalink
replace embedded non-breaking space with \xa0
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyscot committed Jan 29, 2024
1 parent 55e6063 commit 43bc2d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/e2e/modules/weather_current_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ describe("Weather module", () => {
});

it("should render feels like temperature", async () => {
await expect(weatherFunc.getText(".weather .normal.medium.feelslike span.dimmed", "93.7  Feels like -5.6°")).resolves.toBe(true);
// Template contains   which renders as \xa0
await expect(weatherFunc.getText(".weather .normal.medium.feelslike span.dimmed", "93.7\xa0 Feels like -5.6°")).resolves.toBe(true);
});
it("should render humidity next to feels-like", async () => {
await expect(weatherFunc.getText(".weather .normal.medium.feelslike span.dimmed .humidity", "93.7")).resolves.toBe(true);
Expand Down

0 comments on commit 43bc2d6

Please sign in to comment.