From c6c2f5df138566aae2d4ca19eab48aed8a8e4f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20Mart=C3=ADnez?= Date: Fri, 15 Nov 2024 08:22:15 +0100 Subject: [PATCH] E2E: fix flaky test --- cypress/tests/persistent-dashboard-check.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cypress/tests/persistent-dashboard-check.spec.ts b/cypress/tests/persistent-dashboard-check.spec.ts index 6307645d1..381088e4f 100644 --- a/cypress/tests/persistent-dashboard-check.spec.ts +++ b/cypress/tests/persistent-dashboard-check.spec.ts @@ -70,12 +70,16 @@ describe('Check Persistent Dashboard', () => { ); let initialPVC: number; let initialPV: number; + cy.byTestID('inventory-pvc') + .find('.skeleton-inventory') + .should('not.exist'); cy.byTestID('inventory-pvc') .invoke('text') .then((pvcText) => { initialPVC = Number(extractNumbersFromText(pvcText)); cy.log(`Initial number of PVCs: ${initialPVC}`); }); + cy.byTestID('inventory-pv').find('.skeleton-inventory').should('not.exist'); cy.byTestID('inventory-pv') .invoke('text') .then((pvText) => {