Skip to content

Commit

Permalink
[Reporting] Unskip tests on access to download link in stack manageme…
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan authored Oct 1, 2024
1 parent ca46f78 commit c7e44c8
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
const reportingFunctional = getService('reportingFunctional');
const esArchiver = getService('esArchiver');

// Failing: See https://github.com/elastic/kibana/issues/192014
describe.skip('Access to Management > Reporting', () => {
describe('Access to Management > Reporting', () => {
before(async () => {
await reportingFunctional.initEcommerce();
});
Expand Down Expand Up @@ -59,22 +58,27 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {

describe('Download report', () => {
// use archived reports to allow reporting_user to view report jobs they've created
before(async () => {
before('log in as reporting user', async () => {
await esArchiver.load('x-pack/test/functional/es_archives/reporting/archived_reports');

await reportingFunctional.loginReportingUser();
await PageObjects.common.navigateToApp('reporting');
await testSubjects.existOrFail('reportJobListing');
});

after(async () => {
await esArchiver.unload('x-pack/test/functional/es_archives/reporting/archived_reports');
});

it('user can access download link', async () => {
await reportingFunctional.loginReportingUser();
await PageObjects.common.navigateToApp('reporting');
await testSubjects.existOrFail('reportJobListing');

await testSubjects.existOrFail('reportDownloadLink-kraz9db6154g0763b5141viu');
});

it('user can access download link for export type that is no longer supported', async () => {
await reportingFunctional.loginReportingUser();
await PageObjects.common.navigateToApp('reporting');
await testSubjects.existOrFail('reportJobListing');

// The "csv" export type, aka CSV V1, was removed and can no longer be created.
// Downloading a report of this export type does still work
await testSubjects.existOrFail('reportDownloadLink-krb7arhe164k0763b50bjm31');
Expand Down

0 comments on commit c7e44c8

Please sign in to comment.