From: Nizamudeen A Date: Sun, 4 Sep 2022 05:06:40 +0000 (+0530) Subject: mgr/dashboard: fix Expected to find element: `cd-modal .badge but never found it X-Git-Tag: v16.2.11~276^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b6d3cce117f1238326d7e5655865864a866fc2f8;p=ceph.git 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) --- 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) => {