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:
parent
0ceeb18269
commit
6b14183706
@ -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);
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user