Skip to content
Snippets Groups Projects
Unverified Commit 3fe8aaad authored by Anton Kulyk's avatar Anton Kulyk Committed by GitHub
Browse files

Fix dashboard tabs drop animation (#39444)

* Fix dashboard tabs drop animation

* Remove animation delay from an e2e test
parent 636d7185
No related branches found
No related tags found
No related merge requests found
......@@ -561,13 +561,7 @@ describe("scenarios > dashboard > tabs", () => {
});
// Ensure the tab name has reverted to the long name after the drag has completed
cy.findByRole("button", { name: longName })
.should("be.visible")
.should($el => {
// ensure animation has finished
const minTextWidth = 300;
expect($el[0].getBoundingClientRect().width).greaterThan(minTextWidth);
});
cy.findByRole("button", { name: longName }).should("be.visible");
saveDashboard();
......
......@@ -36,6 +36,7 @@ export function Sortable({
} = useSortable({
id,
disabled,
animateLayoutChanges: () => false,
});
return (
......
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