mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Cypress dashboard-time-zone: break chain to prevent flakiness (#75001)
break chain to prevent flakiness
This commit is contained in:
@@ -66,18 +66,18 @@ describe('Dashboard time zone support', () => {
|
|||||||
for (const title of panelsToCheck) {
|
for (const title of panelsToCheck) {
|
||||||
e2e.components.Panels.Panel.title(title)
|
e2e.components.Panels.Panel.title(title)
|
||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
.within(() =>
|
.within(() => {
|
||||||
|
e2e.components.Panels.Visualization.Graph.xAxis.labels().should('be.visible');
|
||||||
e2e.components.Panels.Visualization.Graph.xAxis
|
e2e.components.Panels.Visualization.Graph.xAxis
|
||||||
.labels()
|
.labels()
|
||||||
.should('be.visible')
|
|
||||||
.last()
|
.last()
|
||||||
.should((element) => {
|
.should((element) => {
|
||||||
const inUtc = timesInUtc[title];
|
const inUtc = timesInUtc[title];
|
||||||
const inTz = element.text();
|
const inTz = element.text();
|
||||||
const isCorrect = isTimeCorrect(inUtc, inTz, offset);
|
const isCorrect = isTimeCorrect(inUtc, inTz, offset);
|
||||||
expect(isCorrect).to.be.equal(true);
|
expect(isCorrect).to.be.equal(true);
|
||||||
})
|
});
|
||||||
);
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user