From f4f8022508a5a570e9e564be8b37f5198f113065 Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Sun, 4 Sep 2022 10:36:40 +0530 Subject: [PATCH] mgr/dashboard: fix Expected to find element: `cd-modal .badge but never found it This looks related to https://github.com/ceph/ceph/pull/46323, but i am not sure why it started failing recently in the teuthology. The error is fixed by deselecting the row manually, so that it won't accidentally get deselected when we actually want it to select it. Fixes: https://tracker.ceph.com/issues/57207 Signed-off-by: Nizamudeen A (cherry picked from commit dcbf179106273b85361dd6067239c4e826d1f3bb) --- .../dashboard/frontend/cypress/integration/cluster/hosts.po.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/hosts.po.ts b/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/hosts.po.ts index b769c880a87d..33fe756ff857 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/hosts.po.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/hosts.po.ts @@ -88,6 +88,7 @@ export class HostsPageHelper extends PageHelper { // Verify labels are added or removed from Labels column // First find row with hostname, then find labels in the row this.getTableCell(this.columnIndex.hostname, hostname) + .click() .parent() .find(`datatable-body-cell:nth-child(${this.columnIndex.labels}) .badge`) .should(($ele) => { -- 2.47.3