]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/rgw/daemons.po.ts
buildsys: change download over to reef release
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / integration / rgw / daemons.po.ts
1 import { PageHelper } from '../page-helper.po';
2
3 export class DaemonsPageHelper extends PageHelper {
4 pages = {
5 index: { url: '#/rgw/daemon', id: 'cd-rgw-daemon-list' }
6 };
7
8 getTableCell() {
9 return cy
10 .get('.tab-content')
11 .its(1)
12 .find('cd-table')
13 .should('have.length', 1) // Only 1 table should be renderer
14 .find('datatable-body-cell');
15 }
16
17 checkTables() {
18 // click on a daemon so details table appears
19 cy.get('.datatable-body-cell-label').first().click();
20
21 // check details table is visible
22 // check at least one field is present
23 this.getTableCell().should('be.visible').should('contain.text', 'ceph_version');
24
25 // click on performance counters tab and check table is loaded
26 cy.contains('.nav-link', 'Performance Counters').click();
27
28 // check at least one field is present
29 this.getTableCell().should('be.visible').should('contain.text', 'objecter.op_r');
30
31 // click on performance details tab
32 cy.contains('.nav-link', 'Performance Details').click();
33 }
34 }