this change fixes a regression introduced by
8c5e31ec1a13bc53394eb2cb6880d74db169fac4 which broke the 01-hosts.e2e-spec.ts test
driven by test_dashboard_e2e.sh
Fixes: https://tracker.ceph.com/issues/49205
Signed-off-by: Nizamudeen A <nia@redhat.com>
// First find row with hostname, then find labels in the row
this.getTableCell(this.columnIndex.hostname, hostname)
.parent()
- .find(`datatable-body-cell:nth-child(${this.columnIndex.labels})`)
+ .find(`datatable-body-cell:nth-child(${this.columnIndex.labels}) .badge`)
.should(($ele) => {
- const newLabels = $ele.text().split(', ');
+ const newLabels = $ele.toArray().map((v) => v.innerText);
for (const label of labels) {
if (add) {
expect(newLabels).to.include(label);