]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix flaky inventory e2e test 44056/head
authorNizamudeen A <nia@redhat.com>
Thu, 18 Nov 2021 07:13:39 +0000 (12:43 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 23 Nov 2021 06:04:07 +0000 (11:34 +0530)
commit71730c71062874bbb63a4b1aadd83ebf0398e8fd
treef736eec8cab6d5aadd569204aa58c77e6bb413b2
parent491d9c9ea495dd259bf50204ed2e0e5566d4f13f
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>
(cherry picked from commit cdce5f78ad4a9f4a91837322b83cee89a393a0ca)
src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/03-inventory.e2e-spec.ts