Skip to content
Snippets Groups Projects
Unverified Commit 2f16ac01 authored by Uladzimir Havenchyk's avatar Uladzimir Havenchyk Committed by GitHub
Browse files

Make tabs e2e test more reliable and do not fail on 29th of February (#39301)

parent e27747a7
No related branches found
No related tags found
No related merge requests found
......@@ -490,7 +490,7 @@ describe("scenarios > dashboard > tabs", () => {
filterWidget().contains("Relative Date").click();
popover().within(() => {
cy.findByText("Today").click();
cy.findByText("Past 7 days").click();
});
// Loader in the 2nd tab
......@@ -561,7 +561,13 @@ describe("scenarios > dashboard > tabs", () => {
});
// Ensure the tab name has reverted to the long name after the drag has completed
cy.findByRole("button", { name: longName });
cy.findByRole("button", { name: longName })
.should("be.visible")
.should($el => {
// ensure animation has finished
const minTextWidth = 300;
expect($el[0].getBoundingClientRect().width).greaterThan(minTextWidth);
});
saveDashboard();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment