summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/cypress/integration/rgw/daemons.e2e-spec.ts
blob: 4cad786c6fefe412aff8584105650d38cbfedca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { DaemonsPageHelper } from './daemons.po';

describe('RGW daemons page', () => {
  const daemons = new DaemonsPageHelper();

  beforeEach(() => {
    cy.login();
    Cypress.Cookies.preserveOnce('token');
    daemons.navigateTo();
  });

  describe('breadcrumb and tab tests', () => {
    it('should open and show breadcrumb', () => {
      daemons.expectBreadcrumbText('Daemons');
    });

    it('should show two tabs', () => {
      daemons.getTabsCount().should('eq', 2);
    });

    it('should show daemons list tab at first', () => {
      daemons.getTabText(0).should('eq', 'Daemons List');
    });

    it('should show overall performance as a second tab', () => {
      daemons.getTabText(1).should('eq', 'Overall Performance');
    });
  });

  describe('details and performance counters table tests', () => {
    it('should check that details/performance tables are visible when daemon is selected', () => {
      daemons.checkTables();
    });
  });
});