]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix Expected to find element: `cd-modal .badge but never found it 48142/head
authorNizamudeen A <nia@redhat.com>
Sun, 4 Sep 2022 05:06:40 +0000 (10:36 +0530)
committerNizamudeen A <nia@redhat.com>
Fri, 16 Sep 2022 15:23:45 +0000 (20:53 +0530)
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 <nia@redhat.com>
(cherry picked from commit dcbf179106273b85361dd6067239c4e826d1f3bb)

src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/hosts.po.ts

index b769c880a87d0930cedb1dd433c22293dff98e67..33fe756ff857781e32b11751262542c06a15cb1c 100644 (file)
@@ -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) => {