Skip to content

Commit

Permalink
Fix e2e tests failing on prometheus.spec (rancher#10238)
Browse files Browse the repository at this point in the history
* test fix

* test fix - not install but upgrade

* test fix again - wildcard url param

---------

Co-authored-by: Alexandre Alves <[email protected]>
  • Loading branch information
aalves08 and Alexandre Alves authored Jan 10, 2024
1 parent b036421 commit 7acae2b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cypress/e2e/tests/pages/charts/prometheus.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 7acae2b

Please sign in to comment.