Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Definition Details Modal & Delete Toast #258

Merged
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
34 changes: 34 additions & 0 deletions kibana-reports/.cypress/integration/04-download.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,38 @@ describe('Cypress', () => {

cy.get('#generateCSV').click({ force: true });
});

it('Download from Report definition details page', () => {
// create an on-demand report definition

cy.visit('http://localhost:5601/app/opendistro_kibana_reports#/');
cy.location('pathname', { timeout: 60000 }).should(
'include',
'/opendistro_kibana_reports'
);
cy.wait(12500);
cy.get('#createReportHomepageButton').click();

// enter a report name
cy.get('#reportSettingsName').type('Create cypress test on-demand report');

// enter a report description
cy.get('#reportSettingsDescription').type('Description for cypress test');

// create an on-demand report definition
cy.get('#createNewReportDefinition').click({ force: true });

cy.wait(5000);

// visit the details page of the newly created on-demand definition
cy.get('#reportDefinitionDetailsLink').first().click();

cy.url().should('include', 'report_definition_details');

cy.get('#generateReportFromDetailsButton').should('exist');

cy.get('#generateReportFromDetailsButton').click({ force: true });

cy.get('#downloadInProgressLoadingModal');
});
});
Loading