Skip to content

Commit

Permalink
Merge pull request #1684 from alfonsomthd/fix-flaky-test
Browse files Browse the repository at this point in the history
E2E: fix flaky test: Check Inventory card is correct
  • Loading branch information
alfonsomthd authored Nov 15, 2024
2 parents 85b49f4 + c6c2f5d commit de9a89a
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 de9a89a

Please sign in to comment.