FIX: broken test due to user timezone (#763)

The commit d878317c5f set the calendar timezone to the user’s timezone when available and as result broke this test.
This commit is contained in:
Joffrey JAFFEUX 2025-07-02 14:59:26 +02:00 committed by GitHub
parent d878317c5f
commit 7383bfb788
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import { tomorrow, twoDays } from "discourse/lib/time-utils";
import {
acceptance,
exists,
query,
queryAll,
} from "discourse/tests/helpers/qunit-helpers";
@ -101,13 +100,13 @@ acceptance("Discourse Calendar - Upcoming Events Calendar", function (needs) {
await visit("/upcoming-events");
assert.strictEqual(
query(".fc-row tr:first-child .fc-event").style.backgroundColor,
queryAll(".fc-event")[0].style.backgroundColor,
"rgb(190, 10, 10)",
"Event item uses the proper color from category 1"
);
assert.strictEqual(
query(".fc-row tr:nth-child(2) .fc-event").style.backgroundColor,
queryAll(".fc-event")[1].style.backgroundColor,
"rgb(15, 120, 190)",
"Event item uses the proper color from category 2"
);