Skip to content

Commit d3e8b60

Browse files
authored
Fixing test that passed in CI but not locally (#2355)
1 parent e5d90d3 commit d3e8b60

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Frontend/src/components/messages2/SagaDiagram.spec.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ describe("Feature: 3 Visual Representation of Saga Timeline", () => {
224224
// JSDOM, used by Vitest, defaults to PST timezone
225225
// To ensure consistency, explicitly set the timezone to PST
226226
// This ensures that the rendered local time of the saga changes
227-
// will always be interpreted and displayed in PST, avoiding flakiness
228-
process.env.TZ = "PST";
227+
// will always be interpreted and displayed in "America/Los_Angeles"
228+
process.env.TZ = "America/Los_Angeles";
229229

230230
//access each of the saga changes and update its start time and finish time to the same values being read from the variable declaration,
231231
// but set them again explicitly here
@@ -241,9 +241,6 @@ describe("Feature: 3 Visual Representation of Saga Timeline", () => {
241241
sampleSagaHistory.changes[3].finish_time = new Date("2025-03-28T03:04:05.3799483Z"); //D1
242242
sampleSagaHistory.changes[3].status = "new";
243243

244-
//B(1), C(2), A(0), D(3)
245-
//B(1), C1(2), C(2), A1(0)
246-
247244
// Set up the store with sample saga history
248245
const componentDriver = rendercomponent({
249246
initialState: {

0 commit comments

Comments
 (0)