summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/crush-map.po.ts
blob: a5d2d591ce0480d3e70abf63cbc008999642d342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { PageHelper } from '../page-helper.po';

export class CrushMapPageHelper extends PageHelper {
  pages = { index: { url: '#/crush-map', id: 'cd-crushmap' } };

  getPageTitle() {
    return cy.get('cd-crushmap .card-header').text();
  }

  getCrushNode(idx: number) {
    return cy.get('.node-name.type-osd').eq(idx);
  }
}