]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/crush-map.e2e-spec.ts
2c8d1322f4e9b3fd150eba45de95d932d660cbd0
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / integration / cluster / crush-map.e2e-spec.ts
1 import { CrushMapPageHelper } from './crush-map.po';
2
3 describe('CRUSH map page', () => {
4 const crushmap = new CrushMapPageHelper();
5
6 beforeEach(() => {
7 cy.login();
8 crushmap.navigateTo();
9 });
10
11 describe('breadcrumb test', () => {
12 it('should open and show breadcrumb', () => {
13 crushmap.expectBreadcrumbText('CRUSH map');
14 });
15 });
16
17 describe('fields check', () => {
18 it('should check that title & table appears', () => {
19 // Check that title (CRUSH map viewer) appears
20 crushmap.getPageTitle().should('equal', 'CRUSH map viewer');
21
22 // Check that title appears once OSD is clicked
23 crushmap.getCrushNode(1).click();
24
25 crushmap
26 .getLegends()
27 .invoke('text')
28 .then((legend) => {
29 crushmap.getCrushNode(1).should('have.text', legend);
30 });
31
32 // Check that table appears once OSD is clicked
33 crushmap.getDataTables().should('be.visible');
34 });
35 });
36 });