From 54e8e8b96baf02d7924aa8d5497763af7ef14ba7 Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Thu, 25 May 2023 13:43:12 +0530 Subject: [PATCH] mgr/dashboard: remove deprecated preserveOnce cypress is deprecating preserveOnce and instead favoring using cy.session(). session is already introduced as part of the upgrade to cypress 10. So removing the preserveOnce here Signed-off-by: Nizamudeen A --- doc/dev/developer_guide/dash-devel.rst | 1 - .../dashboard/frontend/cypress/e2e/a11y/dashboard.e2e-spec.ts | 1 - .../dashboard/frontend/cypress/e2e/a11y/navigation.e2e-spec.ts | 1 - .../dashboard/frontend/cypress/e2e/block/images.e2e-spec.ts | 3 --- .../mgr/dashboard/frontend/cypress/e2e/block/iscsi.e2e-spec.ts | 1 - .../dashboard/frontend/cypress/e2e/block/mirroring.e2e-spec.ts | 3 --- .../frontend/cypress/e2e/cluster/configuration.e2e-spec.ts | 1 - .../frontend/cypress/e2e/cluster/crush-map.e2e-spec.ts | 1 - .../dashboard/frontend/cypress/e2e/cluster/hosts.e2e-spec.ts | 1 - .../dashboard/frontend/cypress/e2e/cluster/logs.e2e-spec.ts | 1 - .../frontend/cypress/e2e/cluster/mgr-modules.e2e-spec.ts | 1 - .../frontend/cypress/e2e/cluster/monitors.e2e-spec.ts | 1 - .../dashboard/frontend/cypress/e2e/cluster/osds.e2e-spec.ts | 1 - .../dashboard/frontend/cypress/e2e/cluster/users.e2e-spec.ts | 1 - .../frontend/cypress/e2e/common/01-global.feature.po.ts | 1 - .../frontend/cypress/e2e/filesystems/filesystems.e2e-spec.ts | 1 - .../frontend/cypress/e2e/orchestrator/01-hosts.e2e-spec.ts | 1 - .../frontend/cypress/e2e/orchestrator/03-inventory.e2e-spec.ts | 1 - .../frontend/cypress/e2e/orchestrator/04-osds.e2e-spec.ts | 1 - .../frontend/cypress/e2e/orchestrator/05-services.e2e-spec.ts | 1 - .../workflow/03-create-cluster-create-services.e2e-spec.ts | 1 - .../workflow/04-create-cluster-create-osds.e2e-spec.ts | 1 - .../orchestrator/workflow/05-create-cluster-review.e2e-spec.ts | 1 - .../e2e/orchestrator/workflow/06-cluster-check.e2e-spec.ts | 1 - .../cypress/e2e/orchestrator/workflow/07-osds.e2e-spec.ts | 1 - .../cypress/e2e/orchestrator/workflow/08-hosts.e2e-spec.ts | 1 - .../cypress/e2e/orchestrator/workflow/09-services.e2e-spec.ts | 1 - .../e2e/orchestrator/workflow/10-nfs-exports.e2e-spec.ts | 1 - .../mgr/dashboard/frontend/cypress/e2e/pools/pools.e2e-spec.ts | 1 - .../mgr/dashboard/frontend/cypress/e2e/rgw/buckets.e2e-spec.ts | 1 - .../mgr/dashboard/frontend/cypress/e2e/rgw/daemons.e2e-spec.ts | 1 - .../mgr/dashboard/frontend/cypress/e2e/rgw/users.e2e-spec.ts | 1 - .../mgr/dashboard/frontend/cypress/e2e/ui/api-docs.e2e-spec.ts | 1 - .../dashboard/frontend/cypress/e2e/ui/dashboard-v3.e2e-spec.ts | 1 - .../dashboard/frontend/cypress/e2e/ui/dashboard.e2e-spec.ts | 1 - .../mgr/dashboard/frontend/cypress/e2e/ui/language.e2e-spec.ts | 1 - .../dashboard/frontend/cypress/e2e/ui/navigation.e2e-spec.ts | 1 - .../dashboard/frontend/cypress/e2e/ui/notification.e2e-spec.ts | 3 --- .../dashboard/frontend/cypress/e2e/ui/role-mgmt.e2e-spec.ts | 1 - .../dashboard/frontend/cypress/e2e/ui/user-mgmt.e2e-spec.ts | 1 - 40 files changed, 46 deletions(-) diff --git a/doc/dev/developer_guide/dash-devel.rst b/doc/dev/developer_guide/dash-devel.rst index b0bfc6764c1..24aa8335c78 100644 --- a/doc/dev/developer_guide/dash-devel.rst +++ b/doc/dev/developer_guide/dash-devel.rst @@ -1269,7 +1269,6 @@ Tests can be found under the `a11y folder <./src/pybind/mgr/dashboard/frontend/c beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); shared.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/a11y/dashboard.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/a11y/dashboard.e2e-spec.ts index 4feea0da71d..39a2dbf14cb 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/a11y/dashboard.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/a11y/dashboard.e2e-spec.ts @@ -5,7 +5,6 @@ describe('Dashboard Main Page', { retries: 0 }, () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); dashboard.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/a11y/navigation.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/a11y/navigation.e2e-spec.ts index 2a0c5c5a533..3a0a1a7dc90 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/a11y/navigation.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/a11y/navigation.e2e-spec.ts @@ -5,7 +5,6 @@ describe('Navigation accessibility', { retries: 0 }, () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); shared.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/block/images.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/block/images.e2e-spec.ts index 5c89359db79..962c135d56f 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/block/images.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/block/images.e2e-spec.ts @@ -9,7 +9,6 @@ describe('Images page', () => { before(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); // Need pool for image testing pools.navigateTo('create'); pools.create(poolName, 8, 'rbd'); @@ -26,7 +25,6 @@ describe('Images page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); images.navigateTo(); }); @@ -70,7 +68,6 @@ describe('Images page', () => { before(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); // Need image for trash testing images.createImage(imageName, poolName, '1'); images.getFirstTableCell(imageName).should('exist'); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/block/iscsi.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/block/iscsi.e2e-spec.ts index cef4874bed5..2788c4f9b9d 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/block/iscsi.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/block/iscsi.e2e-spec.ts @@ -5,7 +5,6 @@ describe('Iscsi Page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); iscsi.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/block/mirroring.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/block/mirroring.e2e-spec.ts index 266176949c5..fb7db27122d 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/block/mirroring.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/block/mirroring.e2e-spec.ts @@ -7,7 +7,6 @@ describe('Mirroring page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); mirroring.navigateTo(); }); @@ -32,7 +31,6 @@ describe('Mirroring page', () => { // login to the second ceph cluster cy.ceph2Login(); cy.login(); - Cypress.Cookies.preserveOnce('token'); pools.navigateTo('create'); pools.create(poolName, 8, 'rbd'); pools.navigateTo(); @@ -85,7 +83,6 @@ describe('Mirroring page', () => { // login again since origin removes all the cookies // sessions, localStorage items etc.. cy.login(); - Cypress.Cookies.preserveOnce('token'); mirroring.navigateTo(); mirroring.checkPoolHealthStatus(poolName, 'OK'); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/configuration.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/configuration.e2e-spec.ts index d022d59cfa9..983140a44c4 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/configuration.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/configuration.e2e-spec.ts @@ -5,7 +5,6 @@ describe('Configuration page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); configuration.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/crush-map.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/crush-map.e2e-spec.ts index 0a454739fd4..23497bbd579 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/crush-map.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/crush-map.e2e-spec.ts @@ -5,7 +5,6 @@ describe('CRUSH map page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); crushmap.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/hosts.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/hosts.e2e-spec.ts index e4f9936c3e3..26a2a8c0be0 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/hosts.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/hosts.e2e-spec.ts @@ -5,7 +5,6 @@ describe('Hosts page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); hosts.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/logs.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/logs.e2e-spec.ts index ecc3cc1cd91..606f6a3cd9d 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/logs.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/logs.e2e-spec.ts @@ -15,7 +15,6 @@ describe('Logs page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); }); describe('breadcrumb and tab tests', () => { diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/mgr-modules.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/mgr-modules.e2e-spec.ts index 0a2aa8184ce..3be48105928 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/mgr-modules.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/mgr-modules.e2e-spec.ts @@ -5,7 +5,6 @@ describe('Manager modules page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); mgrmodules.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/monitors.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/monitors.e2e-spec.ts index a23d071e6d7..8324ff8b5b0 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/monitors.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/monitors.e2e-spec.ts @@ -5,7 +5,6 @@ describe('Monitors page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); monitors.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/osds.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/osds.e2e-spec.ts index 2fc148a1788..f134295e463 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/osds.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/osds.e2e-spec.ts @@ -5,7 +5,6 @@ describe('OSDs page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); osds.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/users.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/users.e2e-spec.ts index 87acda97fd8..d3078937b60 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/users.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/users.e2e-spec.ts @@ -5,7 +5,6 @@ describe('Cluster Ceph Users', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); users.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/common/01-global.feature.po.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/common/01-global.feature.po.ts index d5b4645b8e7..4ddd11fdfe9 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/common/01-global.feature.po.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/common/01-global.feature.po.ts @@ -6,7 +6,6 @@ const urlsCollection = new UrlsCollection(); Given('I am logged in', () => { cy.login(); - Cypress.Cookies.preserveOnce('token'); }); Given('I am on the {string} page', (page: string) => { diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/filesystems/filesystems.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/filesystems/filesystems.e2e-spec.ts index e623475fd78..de66a005a65 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/filesystems/filesystems.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/filesystems/filesystems.e2e-spec.ts @@ -5,7 +5,6 @@ describe('File Systems page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); filesystems.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/01-hosts.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/01-hosts.e2e-spec.ts index aca36ade192..8ad2a1dafda 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/01-hosts.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/01-hosts.e2e-spec.ts @@ -5,7 +5,6 @@ describe('Hosts page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); hosts.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/03-inventory.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/03-inventory.e2e-spec.ts index a64e3bc8c02..fe845e1cfd8 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/03-inventory.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/03-inventory.e2e-spec.ts @@ -5,7 +5,6 @@ describe('Physical Disks page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); inventory.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/04-osds.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/04-osds.e2e-spec.ts index 41f0933b7a0..e80398d5a47 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/04-osds.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/04-osds.e2e-spec.ts @@ -7,7 +7,6 @@ describe('OSDs page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); osds.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/05-services.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/05-services.e2e-spec.ts index fb5e6ac8923..75b46be0f5a 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/05-services.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/05-services.e2e-spec.ts @@ -6,7 +6,6 @@ describe('Services page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); services.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/03-create-cluster-create-services.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/03-create-cluster-create-services.e2e-spec.ts index 745a2ec5d18..0118c85c113 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/03-create-cluster-create-services.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/03-create-cluster-create-services.e2e-spec.ts @@ -17,7 +17,6 @@ describe('Create cluster create services page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); createCluster.navigateTo(); createCluster.createCluster(); cy.get('.nav-link').contains('Create Services').click(); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/04-create-cluster-create-osds.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/04-create-cluster-create-osds.e2e-spec.ts index 24262435da2..5583d37fd12 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/04-create-cluster-create-osds.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/04-create-cluster-create-osds.e2e-spec.ts @@ -10,7 +10,6 @@ describe('Create cluster create osds page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); createCluster.navigateTo(); createCluster.createCluster(); cy.get('.nav-link').contains('Create OSDs').click(); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/05-create-cluster-review.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/05-create-cluster-review.e2e-spec.ts index f93ad7a975b..f910b0d8564 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/05-create-cluster-review.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/05-create-cluster-review.e2e-spec.ts @@ -11,7 +11,6 @@ describe('Create Cluster Review page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); createCluster.navigateTo(); createCluster.createCluster(); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/06-cluster-check.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/06-cluster-check.e2e-spec.ts index 94cb36c1929..722741a6cc5 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/06-cluster-check.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/06-cluster-check.e2e-spec.ts @@ -13,7 +13,6 @@ describe('when cluster creation is completed', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); }); it('should redirect to dashboard landing page after cluster creation', () => { diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/07-osds.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/07-osds.e2e-spec.ts index a0a1dd03214..5a16bfe541a 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/07-osds.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/07-osds.e2e-spec.ts @@ -7,7 +7,6 @@ describe('OSDs page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); osds.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/08-hosts.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/08-hosts.e2e-spec.ts index 6e8c63279c2..94c61b25cc3 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/08-hosts.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/08-hosts.e2e-spec.ts @@ -11,7 +11,6 @@ describe('Host Page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); hosts.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/09-services.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/09-services.e2e-spec.ts index 91f2de58e6b..88b8ab4c9ea 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/09-services.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/09-services.e2e-spec.ts @@ -7,7 +7,6 @@ describe('Services page', () => { const mdsDaemonName = 'mds.test'; beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); services.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/10-nfs-exports.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/10-nfs-exports.e2e-spec.ts index f97509db3b0..6380e5a13e6 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/10-nfs-exports.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/workflow/10-nfs-exports.e2e-spec.ts @@ -19,7 +19,6 @@ describe('nfsExport page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); nfsExport.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.e2e-spec.ts index b4c3c75ac5b..dd4ab6f3b75 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.e2e-spec.ts @@ -6,7 +6,6 @@ describe('Pools page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); pools.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/buckets.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/buckets.e2e-spec.ts index 6c50b48ec0b..99c0732fc6e 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/buckets.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/buckets.e2e-spec.ts @@ -6,7 +6,6 @@ describe('RGW buckets page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); buckets.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/daemons.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/daemons.e2e-spec.ts index f3129a7ffd9..b71d715f847 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/daemons.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/daemons.e2e-spec.ts @@ -5,7 +5,6 @@ describe('RGW daemons page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); daemons.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/users.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/users.e2e-spec.ts index b5f366a0909..c107a08dd75 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/users.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/users.e2e-spec.ts @@ -8,7 +8,6 @@ describe('RGW users page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); users.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/api-docs.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/api-docs.e2e-spec.ts index 52994859e24..388e3dd8cc5 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/api-docs.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/api-docs.e2e-spec.ts @@ -5,7 +5,6 @@ describe('Api Docs Page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); apiDocs.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard-v3.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard-v3.e2e-spec.ts index 8fa0013c36a..80ea7c325fc 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard-v3.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard-v3.e2e-spec.ts @@ -15,7 +15,6 @@ describe('Dashboard-v3 Main Page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); dashboard.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard.e2e-spec.ts index 43def20e1fd..ef719c9fd14 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard.e2e-spec.ts @@ -28,7 +28,6 @@ describe('Dashboard Main Page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); dashboard.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/language.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/language.e2e-spec.ts index ccf16c2b55c..fa20f0be542 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/language.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/language.e2e-spec.ts @@ -5,7 +5,6 @@ describe('Shared pages', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); language.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/navigation.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/navigation.e2e-spec.ts index fee2d2db967..1625dab4fb5 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/navigation.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/navigation.e2e-spec.ts @@ -5,7 +5,6 @@ describe('Shared pages', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); shared.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/notification.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/notification.e2e-spec.ts index 2ee73a70632..b69f26f58dc 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/notification.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/notification.e2e-spec.ts @@ -8,7 +8,6 @@ describe('Notification page', () => { before(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); pools.navigateTo('create'); pools.create(poolName, 8); pools.edit_pool_pg(poolName, 4, false); @@ -16,14 +15,12 @@ describe('Notification page', () => { after(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); pools.navigateTo(); pools.delete(poolName); }); beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); pools.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/role-mgmt.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/role-mgmt.e2e-spec.ts index c3f325dbbe1..7e76f168e6d 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/role-mgmt.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/role-mgmt.e2e-spec.ts @@ -6,7 +6,6 @@ describe('Role Management page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); roleMgmt.navigateTo(); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/user-mgmt.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/user-mgmt.e2e-spec.ts index 92dc772121b..57818db0ae7 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/user-mgmt.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/user-mgmt.e2e-spec.ts @@ -6,7 +6,6 @@ describe('User Management page', () => { beforeEach(() => { cy.login(); - Cypress.Cookies.preserveOnce('token'); userMgmt.navigateTo(); }); -- 2.39.5