1 import { PageHelper } from '../page-helper.po';
3 export class DaemonsPageHelper extends PageHelper {
5 index: { url: '#/rgw/daemon', id: 'cd-rgw-daemon-list' }
8 getTableCell(tableIndex: number) {
10 .get('.tab-container')
14 .find('datatable-body-cell');
18 // click on a daemon so details table appears
19 cy.get('.datatable-body-cell-label').first().click();
21 // check details table is visible
22 // check at least one field is present
23 this.getTableCell(0).should('visible').should('contain.text', 'ceph_version');
24 // check performance counters table is not currently visible
25 this.getTableCell(1).should('not.be.visible');
27 // click on performance counters tab and check table is loaded
28 cy.contains('.nav-link', 'Performance Counters').click();
30 // check at least one field is present
31 this.getTableCell(1).should('be.visible').should('contain.text', 'objecter.op_r');
32 // check details table is not currently visible
33 this.getTableCell(0).should('not.be.visible');
35 // click on performance details tab
36 cy.contains('.nav-link', 'Performance Details').click();
38 // checks the other tabs' content isn't visible
39 this.getTableCell(0).should('not.be.visible');
40 this.getTableCell(1).should('not.be.visible');