]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: fix flaky inventory e2e test
authorNizamudeen A <nia@redhat.com>
Thu, 18 Nov 2021 07:13:39 +0000 (12:43 +0530)
committerNizamudeen A <nia@redhat.com>
Mon, 22 Nov 2021 05:42:32 +0000 (11:12 +0530)
commitcdce5f78ad4a9f4a91837322b83cee89a393a0ca
tree4b2c76830aeb3efb999e406778238b8767422dcb
parentb1fba14ef5f54fbba96a1ba70089f51469d0c16e
mgr/dashboard: fix flaky inventory e2e test

When `inventory.getTableCount('total').should('be.eq', totalDiskCount);`
this line is executed the table was not loaded properly and hence the
getTableCount returns 0 on the first try but on second try it passes
since the table is loaded. But in orch e2es the retries are set to 0. I
am not sure if it makes sense to set it to 1. Anyway I am adapting the
test a bit to expect the count to be equal to totalDiskCount so that the
test will wait a bit.

Fixes: https://tracker.ceph.com/issues/53353
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/03-inventory.e2e-spec.ts