From: Nizamudeen A Date: Thu, 25 May 2023 08:13:12 +0000 (+0530) Subject: mgr/dashboard: remove deprecated preserveOnce X-Git-Tag: v18.1.1~57^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d5b8ea3002c63326d3f80c56e4de8d6ba73d50b8;p=ceph.git 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 (cherry picked from commit 54e8e8b96baf02d7924aa8d5497763af7ef14ba7) --- diff --git a/doc/dev/developer_guide/dash-devel.rst b/doc/dev/developer_guide/dash-devel.rst index b0bfc6764c196..24aa8335c78dc 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 4feea0da71d07..39a2dbf14cbd0 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 2a0c5c5a533f5..3a0a1a7dc90a5 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 5c89359db790e..962c135d56fc0 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 cef4874bed50f..2788c4f9b9de7 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 266176949c596..fb7db27122d4a 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 d022d59cfa9a2..983140a44c4bd 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 0a454739fd406..23497bbd57909 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 e4f9936c3e36f..26a2a8c0be060 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 ecc3cc1cd9126..606f6a3cd9df6 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 0a2aa8184ceee..3be48105928d1 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 a23d071e6d721..8324ff8b5b058 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 2fc148a1788c3..f134295e463fc 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 87acda97fd83c..d3078937b608e 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 d5b4645b8e7c6..4ddd11fdfe944 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 e623475fd784d..de66a005a659f 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 aca36ade19219..8ad2a1dafda06 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 a64e3bc8c020f..fe845e1cfd8d8 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 41f0933b7a0b8..e80398d5a4720 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 fb5e6ac8923aa..75b46be0f5a5f 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 745a2ec5d18fb..0118c85c113dd 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 24262435da2aa..5583d37fd12b6 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 f93ad7a975bb9..f910b0d8564a4 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 94cb36c1929e3..722741a6cc50c 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 a0a1dd03214b4..5a16bfe541a0a 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 6e8c63279c2cd..94c61b25cc374 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 91f2de58e6b58..88b8ab4c9ea5a 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 f97509db3b033..6380e5a13e6eb 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 b4c3c75ac5b85..dd4ab6f3b75a3 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 6c50b48ec0b8a..99c0732fc6e69 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 f3129a7ffd9e8..b71d715f84734 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 b5f366a090935..c107a08dd75a6 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 52994859e2495..388e3dd8cc521 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 8fa0013c36a0a..80ea7c325fc29 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 43def20e1fdc2..ef719c9fd1470 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 ccf16c2b55c78..fa20f0be54273 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 fee2d2db967ad..1625dab4fb55e 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 2ee73a70632ba..b69f26f58dc38 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 c3f325dbbe13d..7e76f168e6df6 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 92dc772121b11..57818db0ae754 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(); });