diff --git a/cypress.config.ts b/cypress.config.ts index 3a7f8727a17..36b64e82875 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -131,4 +131,6 @@ export default defineConfig({ }, videoCompression: 15, videoUploadOnPasses: false, + viewportWidth: 1280, + viewportHeight: 720, }); diff --git a/cypress/e2e/tests/components/yaml-editor.spec.ts b/cypress/e2e/tests/components/yaml-editor.spec.ts index 5c3bf13e8f9..6ce5f9453b5 100644 --- a/cypress/e2e/tests/components/yaml-editor.spec.ts +++ b/cypress/e2e/tests/components/yaml-editor.spec.ts @@ -11,7 +11,6 @@ describe('Yaml Editor', () => { beforeEach(() => { cy.login(); - cy.viewport(1280, 720); // Create a new deployment resource deploymentsCreatePage.goTo(); diff --git a/cypress/e2e/tests/pages/charts/monitoring-istio.spec.ts b/cypress/e2e/tests/pages/charts/monitoring-istio.spec.ts index 7464561284f..18f523885dc 100644 --- a/cypress/e2e/tests/pages/charts/monitoring-istio.spec.ts +++ b/cypress/e2e/tests/pages/charts/monitoring-istio.spec.ts @@ -29,7 +29,6 @@ describe('[Vue3 Skip]: [Placeholder]: Charts', { tags: ['@charts', '@adminUser'] // before(() => { // cy.login(); -// cy.viewport(1280, 720); // }); // after(() => { diff --git a/cypress/e2e/tests/pages/explorer2/workloads/pods.spec.ts b/cypress/e2e/tests/pages/explorer2/workloads/pods.spec.ts index e8da52258f7..415e78176dc 100644 --- a/cypress/e2e/tests/pages/explorer2/workloads/pods.spec.ts +++ b/cypress/e2e/tests/pages/explorer2/workloads/pods.spec.ts @@ -419,7 +419,6 @@ describe('Pods', { testIsolation: 'off', tags: ['@explorer2', '@adminUser'] }, ( // testing https://github.com/rancher/dashboard/issues/14071 it('should remove the correct environment variable from the workload form', () => { - cy.viewport(1280, 720); const podDetails = new PodPo(); workloadsPodPage.goTo(); diff --git a/cypress/e2e/tests/pages/users-and-auth/roles.spec.ts b/cypress/e2e/tests/pages/users-and-auth/roles.spec.ts index c9f3a93caea..03ed1a11278 100644 --- a/cypress/e2e/tests/pages/users-and-auth/roles.spec.ts +++ b/cypress/e2e/tests/pages/users-and-auth/roles.spec.ts @@ -81,7 +81,6 @@ describe('Roles Templates', { tags: ['@usersAndAuths', '@adminUser'] }, () => { describe('Roles', () => { beforeEach(() => { cy.login(); - cy.viewport(1280, 720); }); it('can create a Global Role template', () => { diff --git a/cypress/jenkins/cypress.config.jenkins.ts b/cypress/jenkins/cypress.config.jenkins.ts index cf57b8fc139..9a8b0118b47 100644 --- a/cypress/jenkins/cypress.config.jenkins.ts +++ b/cypress/jenkins/cypress.config.jenkins.ts @@ -122,4 +122,6 @@ export default defineConfig({ video: false, videoCompression: 25, videoUploadOnPasses: false, + viewportWidth: 1280, + viewportHeight: 720, });