Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions e2e-tests/cypress/e2e/Sanity-check.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ describe('sanity check', () => {
Reporting.downloadAndVerifyAnyReportExists();

cy.log('Change tenancy, and initialize it');
const finishUrl =
semver.gte(getKibanaVersion(), '8.19.0') && semver.lt(getKibanaVersion(), '9.0.0')
? '/app/management/insightsAndAlerting/reporting/exports'
: '/app/management/insightsAndAlerting/reporting';
// Kibana 8.19 and 9.1+ redirect the reporting page to /exports. 9.0 keeps the bare path.
const finishUrl = semver.satisfies(getKibanaVersion(), '>=8.19.0 <9.0.0 || >=9.1.0')
? '/app/management/insightsAndAlerting/reporting/exports'
: '/app/management/insightsAndAlerting/reporting';

RorMenu.changeTenancy('Infosec', finishUrl);

Expand Down
3 changes: 2 additions & 1 deletion e2e-tests/cypress/support/page-objects/Reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export class Reporting {

static verifyIfReportingPageAfterRefresh() {
cy.log('Verify if reporting page open after refresh');
const expectedUrl = semver.satisfies(getKibanaVersion(), '>=8.19.0 <9.0.0')
// Kibana 8.19 and 9.1+ redirect the reporting page to /exports. 9.0 keeps the bare path.
const expectedUrl = semver.satisfies(getKibanaVersion(), '>=8.19.0 <9.0.0 || >=9.1.0')
? `${Cypress.config().baseUrl}/s/default/app/management/insightsAndAlerting/reporting/exports`
: `${Cypress.config().baseUrl}/s/default/app/management/insightsAndAlerting/reporting`;

Expand Down
Loading