summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/cypress/e2e/visualTests/dashboard.vrt-spec.ts
blob: 13802982041dda908493064ce53b0eb3c883b90a (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
import { LoginPageHelper } from '../ui/login.po';

describe.skip('Dashboard Landing Page', () => {
  const login = new LoginPageHelper();

  beforeEach(() => {
    cy.eyesOpen({
      testName: 'Dashboard Component'
    });
  });

  afterEach(() => {
    cy.eyesClose();
  });

  it('should take screenshot of dashboard landing page', () => {
    login.navigateTo();
    login.doLogin();
    cy.get('[aria-label="Status card"]').should('be.visible');
    cy.get('[aria-label="Inventory card"]').should('be.visible');
    cy.get('[aria-label="Cluster utilization card"]').should('be.visible');
    cy.eyesCheckWindow({ tag: 'Dashboard landing page' });
  });
});