Skip to content

Commit

Permalink
E2E: Remove time zone scenario flackyness (#55458)
Browse files Browse the repository at this point in the history
Co-authored-by: polinaboneva <polina.boneva@grafana.com>
  • Loading branch information
ivanortegaalba and polibb committed Oct 5, 2022
1 parent 48ebaa4 commit 7fd613e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions e2e/dashboards-suite/dashboard-time-zone.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ e2e.scenario({
e2e.components.Select.option().should('be.visible').contains(toTimeZone).click();

// click to go back to the dashboard.
e2e.components.BackButton.backArrow().click({ force: true }).wait(5000);
e2e.components.RefreshPicker.runButtonV2().click();
e2e.components.BackButton.backArrow().click({ force: true });
e2e.components.RefreshPicker.runButtonV2().should('be.visible').click();

for (const title of panelsToCheck) {
e2e.components.Panels.Panel.containerByTitle(title)
Expand All @@ -76,7 +76,9 @@ e2e.scenario({
const inUtc = timesInUtc[title];
const inTz = element.text();
const isCorrect = isTimeCorrect(inUtc, inTz, offset);
assert.isTrue(isCorrect, `Panel with title: "${title}"`);
expect(isCorrect, `Expect the panel "${title}" to have the new timezone applied but isn't`).to.be.equal(
true
);
})
);
}
Expand Down

0 comments on commit 7fd613e

Please sign in to comment.