Skip to content

Commit

Permalink
E2E: fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsomthd committed Nov 15, 2024
1 parent 1059fea commit c6c2f5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cypress/tests/persistent-dashboard-check.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit c6c2f5d

Please sign in to comment.