tall-thailand-5343
06/24/2022, 7:15 AMCypress.Commands.add("checkWaitNoSkeletonLoaders", (timeout = undefined) => {
cy.get(.react-loading-skeleton`, { timeout }).then(($elements) => {
if ($elements.length < 1) return true;
cy.wrap($elements, { timeout }).each(($el) => {
cy.wrap($el, { timeout }).should("not.exist");
});
});
});`
Why I would need point 2 at the same time? Because on CI for some weird reason some tests fail at this command (timeout waiting for the element). When running locally but using the same url where our CI tests, it always passes.