mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
mgr/dashboard: Visual regression tests for dashboard component
Signed-off-by: Aaryan Porwal <aaryanporwal2233@gmail.com>
This commit is contained in:
parent
7d69309cf9
commit
e61f884190
@ -0,0 +1,22 @@
|
||||
import { LoginPageHelper } from '../ui/login.po';
|
||||
|
||||
describe('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('.chart-container').should('be.visible');
|
||||
cy.eyesCheckWindow({ tag: 'Dashboard landing page', ignore: { selector: '.chart-container' } });
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user