From 7acae2bd45820194f4ee903309c0fe5ba857695d Mon Sep 17 00:00:00 2001 From: Alexandre Alves <97888974+aalves08@users.noreply.github.com> Date: Wed, 10 Jan 2024 09:35:13 +0000 Subject: [PATCH] Fix e2e tests failing on prometheus.spec (#10238) * test fix * test fix - not install but upgrade * test fix again - wildcard url param --------- Co-authored-by: Alexandre Alves --- cypress/e2e/tests/pages/charts/prometheus.spec.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cypress/e2e/tests/pages/charts/prometheus.spec.ts b/cypress/e2e/tests/pages/charts/prometheus.spec.ts index 2e572a001bd..f04615e82c8 100644 --- a/cypress/e2e/tests/pages/charts/prometheus.spec.ts +++ b/cypress/e2e/tests/pages/charts/prometheus.spec.ts @@ -12,8 +12,7 @@ describe('Charts', { tags: ['@charts', '@adminUser'] }, () => { const chartsPageUrl = '/c/local/apps/charts/chart?repo-type=cluster&repo=rancher-charts'; describe('Monitoring', () => { - const monitoringVersion = '102.0.1%2Bup40.1.2'; - const chartsMonitoringPage = `${ chartsPageUrl }&chart=rancher-monitoring&${ monitoringVersion }`; + const chartsMonitoringPage = `${ chartsPageUrl }&chart=rancher-monitoring`; const chartsPage: ChartsPage = new ChartsPage(chartsMonitoringPage); @@ -120,7 +119,7 @@ describe('Charts', { tags: ['@charts', '@adminUser'] }, () => { beforeEach(() => { cy.login(); chartsPage.goTo(); - cy.intercept('POST', 'v1/catalog.cattle.io.clusterrepos/rancher-charts?action=install', { + cy.intercept('POST', 'v1/catalog.cattle.io.clusterrepos/rancher-charts?*', { statusCode: 201, body: { type: 'chartActionOutput', @@ -130,7 +129,7 @@ describe('Charts', { tags: ['@charts', '@adminUser'] }, () => { } }).as('prometheusChartCreation'); - cy.intercept('GET', '/v1/catalog.cattle.io.operations/fleet-local/helm-operation-test?*', { + cy.intercept('GET', 'v1/catalog.cattle.io.operations/fleet-local/helm-operation-test?*', { statusCode: 200, body: { id: 'fleet-local/helm-operation-test',