From: Pedro Gonzalez Gomez Date: Tue, 19 Dec 2023 15:48:32 +0000 (+0100) Subject: mgr/dashboard: fix e2e failure related to landing page X-Git-Tag: testing/wip-pdonnell-testing-20240430.123648-reef-debug~335^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5d69fdb22e425db5b21c78e26cc5f7c36c123672;p=ceph-ci.git mgr/dashboard: fix e2e failure related to landing page Fixes: https://tracker.ceph.com/issues/59142 Signed-off-by: Pedro Gonzalez Gomez (cherry picked from commit 6ec48eeb261bc8aceb1bfa3ee3732acfb0974478) --- diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/04-osds.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/04-osds.e2e-spec.ts index e80398d5a47..74b46054afd 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/04-osds.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/04-osds.e2e-spec.ts @@ -1,9 +1,19 @@ import { OSDsPageHelper } from '../cluster/osds.po'; import { DashboardPageHelper } from '../ui/dashboard.po'; +import { ManagerModulesPageHelper } from '../cluster/mgr-modules.po'; describe('OSDs page', () => { const osds = new OSDsPageHelper(); const dashboard = new DashboardPageHelper(); + const mgrmodules = new ManagerModulesPageHelper(); + + before(() => { + cy.login(); + mgrmodules.navigateTo(); + mgrmodules.navigateEdit('dashboard'); + cy.get('#FEATURE_TOGGLE_DASHBOARD').uncheck(); + cy.contains('button', 'Update').click(); + }); beforeEach(() => { cy.login();