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

fix flakiness during resize (#48556)

* fix flakiness during resize

* keep error message
parent 63425f5b
No related branches found
No related tags found
No related merge requests found
......@@ -34,14 +34,18 @@ export const assertDescendantNotOverflowsContainer = (
return;
}
expect(descendantRect.bottom, `${message} bottom`).to.be.lte(
containerRect.bottom,
);
expect(descendantRect.top, `${message} top`).to.be.gte(containerRect.top);
expect(descendantRect.left, `${message} left`).to.be.gte(containerRect.left);
expect(descendantRect.right, `${message} right`).to.be.lte(
containerRect.right,
);
cy.wrap(descendantRect).should($descendantRect => {
expect($descendantRect.bottom, `${message} bottom`).to.be.lte(
containerRect.bottom,
);
expect($descendantRect.top, `${message} top`).to.be.gte(containerRect.top);
expect($descendantRect.left, `${message} left`).to.be.gte(
containerRect.left,
);
expect($descendantRect.right, `${message} right`).to.be.lte(
containerRect.right,
);
});
};
export const assertIsEllipsified = element => {
......
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