From b3acc3eba9f23859998872a92ce1e0d1e5931201 Mon Sep 17 00:00:00 2001 From: geido Date: Mon, 29 Aug 2022 09:06:09 +0300 Subject: [PATCH 1/2] Enhance logging --- superset-frontend/cypress-base/applitools.config.js | 3 +++ .../integration/chart_list/chartlist.applitools.test.ts | 4 ++-- .../dashboard_list/dashboardlist.applitools.test.ts | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/superset-frontend/cypress-base/applitools.config.js b/superset-frontend/cypress-base/applitools.config.js index fc963a1c81fa7..54fef685771bf 100644 --- a/superset-frontend/cypress-base/applitools.config.js +++ b/superset-frontend/cypress-base/applitools.config.js @@ -25,4 +25,7 @@ module.exports = { isDisabled: false, showLogs: false, testConcurrency: 10, + forceFullPageScreenshot: true, + hideScrollbars: true, + hideCaret: true, }; diff --git a/superset-frontend/cypress-base/cypress/integration/chart_list/chartlist.applitools.test.ts b/superset-frontend/cypress-base/cypress/integration/chart_list/chartlist.applitools.test.ts index f858f03f5f4b3..ddbbead4a2d02 100644 --- a/superset-frontend/cypress-base/cypress/integration/chart_list/chartlist.applitools.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/chart_list/chartlist.applitools.test.ts @@ -33,7 +33,7 @@ describe('charts list view', () => { cy.eyesOpen({ testName: 'Charts list-view', }); - cy.eyesCheckWindow('Charts loaded'); + cy.eyesCheckWindow('Charts list-view loaded'); }); it('should load the Charts card list', () => { @@ -41,6 +41,6 @@ describe('charts list view', () => { cy.eyesOpen({ testName: 'Charts card-view', }); - cy.eyesCheckWindow('Charts loaded'); + cy.eyesCheckWindow('Charts card-view loaded'); }); }); diff --git a/superset-frontend/cypress-base/cypress/integration/dashboard_list/dashboardlist.applitools.test.ts b/superset-frontend/cypress-base/cypress/integration/dashboard_list/dashboardlist.applitools.test.ts index dd95eefdb2ff2..d85d9b11aee22 100644 --- a/superset-frontend/cypress-base/cypress/integration/dashboard_list/dashboardlist.applitools.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/dashboard_list/dashboardlist.applitools.test.ts @@ -33,7 +33,7 @@ describe('dashboard list view', () => { cy.eyesOpen({ testName: 'Dashboards list-view', }); - cy.eyesCheckWindow('Dashboards loaded'); + cy.eyesCheckWindow('Dashboards list-view loaded'); }); it('should load the Dashboards card list', () => { @@ -41,6 +41,6 @@ describe('dashboard list view', () => { cy.eyesOpen({ testName: 'Dashboards card-view', }); - cy.eyesCheckWindow('Dashboards loaded'); + cy.eyesCheckWindow('Dashboards card-view loaded'); }); }); From f348a0357f28d27574e9ad3bb2a693c95071cfa7 Mon Sep 17 00:00:00 2001 From: geido Date: Mon, 29 Aug 2022 16:59:09 +0300 Subject: [PATCH 2/2] Update conf --- superset-frontend/cypress-base/applitools.config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/superset-frontend/cypress-base/applitools.config.js b/superset-frontend/cypress-base/applitools.config.js index 54fef685771bf..507bcea035782 100644 --- a/superset-frontend/cypress-base/applitools.config.js +++ b/superset-frontend/cypress-base/applitools.config.js @@ -20,12 +20,10 @@ module.exports = { apiKey: process.env.APPLITOOLS_API_KEY, batchId: process.env.APPLITOOLS_BATCH_ID, batchName: process.env.APPLITOOLS_BATCH_NAME, - browser: [{ width: 1000, height: 660, name: 'chrome' }], + browser: [{ width: 1920, height: 1080, name: 'chrome' }], failCypressOnDiff: false, isDisabled: false, showLogs: false, testConcurrency: 10, - forceFullPageScreenshot: true, - hideScrollbars: true, - hideCaret: true, + ignoreCaret: true, };