From dff7a790719986a1a217ff80b1a28309c7121f45 Mon Sep 17 00:00:00 2001 From: Scott Lepper Date: Tue, 6 May 2025 12:58:56 -0400 Subject: [PATCH] Dashboard templating e2e - fix flaky timezone (#104906) Dashboard templating e2e - fix flaky timezone --- e2e/dashboards-suite/dashboard-templating.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/e2e/dashboards-suite/dashboard-templating.spec.ts b/e2e/dashboards-suite/dashboard-templating.spec.ts index 8ce63e4a975..0449f408868 100644 --- a/e2e/dashboards-suite/dashboard-templating.spec.ts +++ b/e2e/dashboards-suite/dashboard-templating.spec.ts @@ -3,6 +3,13 @@ import { e2e } from '../utils'; describe('Dashboard templating', () => { beforeEach(() => { e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD')); + // Note: Only works in Chrome/Chromium-based browsers + Cypress.automation('remote:debugger:protocol', { + command: 'Emulation.setTimezoneOverride', + params: { + timezoneId: 'Pacific/Easter', // OR 'UTC' + }, + }); }); it('Verify variable interpolation works', () => {