]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: visual tests: Add more ignore regions for dashboard component 43240/head
authorAaryan Porwal <aaryanporwal2233@gmail.com>
Sun, 15 Aug 2021 23:04:40 +0000 (04:34 +0530)
committerLaura Paduano <lpaduano@suse.com>
Tue, 21 Sep 2021 11:19:47 +0000 (13:19 +0200)
Fixes: https://tracker.ceph.com/issues/52282
Signed-off-by: Aaryan Porwal <aaryanporwal2233@gmail.com>
(cherry picked from commit dfdfbe5ffd34c11c6bc9466df5396bacffdcf474)

 Conflicts:
src/pybind/mgr/dashboard/frontend/cypress/integration/visualTests/dashboard.vrt-spec.ts
        - This file has not been in pacific before

src/pybind/mgr/dashboard/frontend/cypress/integration/visualTests/dashboard.vrt-spec.ts [new file with mode: 0644]

diff --git a/src/pybind/mgr/dashboard/frontend/cypress/integration/visualTests/dashboard.vrt-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/integration/visualTests/dashboard.vrt-spec.ts
new file mode 100644 (file)
index 0000000..b83d16d
--- /dev/null
@@ -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('.card-text').should('be.visible');
+    cy.eyesCheckWindow({ tag: 'Dashboard landing page', ignore: { selector: '.card-text' } });
+  });
+});