summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/cypress/integration/visualTests/login.vrt-spec.ts
blob: ea74f1d0f748adfdddb5fe994f97ca8e69d32a62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
describe('Login Page', () => {
  beforeEach(() => {
    cy.visit('#/login');
    cy.eyesOpen({
      appName: 'Ceph',
      testName: 'Login Component Check'
    });
  });

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

  it('types login credentials and takes screenshot', () => {
    cy.get('[name=username]').type('admin');
    cy.get('#password').type('admin');
    cy.eyesCheckWindow({ tag: 'Login Screen with credentials typed' });
  });
});