]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: ignore Details card in applitools vrt 51153/head
authorNizamudeen A <nia@redhat.com>
Thu, 20 Apr 2023 07:35:46 +0000 (13:05 +0530)
committerNizamudeen A <nia@redhat.com>
Thu, 20 Apr 2023 07:40:27 +0000 (13:10 +0530)
because the details card includes the FSID and Ceph Version which can
change on different clusters.

also don't run the 800x600 resolution because for new dashboard it looks
really weird.

Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/applitools.config.js
src/pybind/mgr/dashboard/frontend/cypress/integration/visualTests/dashboard.vrt-spec.ts

index 18695d303e6dc60e41ecbdc5c622b922c1fa9c50..450049cec6cf557095a1b349930e6c1fd9038533 100644 (file)
@@ -10,9 +10,7 @@ module.exports = {
   apiKey: process.env.APPLITOOLS_API_KEY,
   browser: [
     { width: 1920, height: 1080, name: 'chrome' },
-    { width: 1920, height: 1080, name: 'firefox' },
-    { width: 800, height: 600, name: 'chrome' },
-    { width: 800, height: 600, name: 'firefox' }
+    { width: 1920, height: 1080, name: 'firefox' }
   ],
   showLogs: false,
   saveDebugData: true,
index 9613dbc85802a5c7c213d9397f7b915f3073f973..450cff871b53d6c7cc53f77b3e3919867e435184 100644 (file)
@@ -16,7 +16,6 @@ describe('Dashboard Landing Page', () => {
   it('should take screenshot of dashboard landing page', () => {
     login.navigateTo();
     login.doLogin();
-    cy.get('[aria-label="Details card"]').should('be.visible');
     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');