From 6b14183706833fa9c7af454f5a215374c7078446 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Mon, 18 Sep 2023 12:02:32 +0100 Subject: [PATCH] Cypress dashboard-time-zone: break chain to prevent flakiness (#75001) break chain to prevent flakiness --- e2e/dashboards-suite/dashboard-time-zone.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/dashboards-suite/dashboard-time-zone.spec.ts b/e2e/dashboards-suite/dashboard-time-zone.spec.ts index 5fdba7ed81d..04af07a43be 100644 --- a/e2e/dashboards-suite/dashboard-time-zone.spec.ts +++ b/e2e/dashboards-suite/dashboard-time-zone.spec.ts @@ -66,18 +66,18 @@ describe('Dashboard time zone support', () => { for (const title of panelsToCheck) { e2e.components.Panels.Panel.title(title) .should('be.visible') - .within(() => + .within(() => { + e2e.components.Panels.Visualization.Graph.xAxis.labels().should('be.visible'); e2e.components.Panels.Visualization.Graph.xAxis .labels() - .should('be.visible') .last() .should((element) => { const inUtc = timesInUtc[title]; const inTz = element.text(); const isCorrect = isTimeCorrect(inUtc, inTz, offset); expect(isCorrect).to.be.equal(true); - }) - ); + }); + }); } });