Skip to content

Commit

Permalink
removing add sample data test (#668)
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <[email protected]>
  • Loading branch information
ps48 authored Apr 19, 2022
1 parent f1715e4 commit 0b8c57e
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions dashboards-observability/.cypress/integration/panels.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,37 +502,7 @@ describe('Testing a panel', () => {
});
});

describe('Add samples and clean up all test data', () => {
it('Add sample data', () => {
moveToPanelHome();
cy.get('.euiButton__text').contains('Actions').trigger('mouseover').click();
cy.wait(delay);
cy.get('.euiContextMenuItem__text').contains('Add samples').trigger('mouseover').click();
cy.wait(delay * 3);
cy.get('.euiModalHeader__title[data-test-subj="confirmModalTitleText"]')
.contains('Add samples')
.should('exist');
cy.wait(delay);
cy.get('.euiButton__text').contains('Yes').trigger('mouseover').click();
cy.wait(delay * 5);
cy.route2('POST', '/addSamplePanels').as('removePage');
cy.wait('@removePage').then(() => {
cy.get('.euiTableCellContent').contains(SAMPLE_PANEL).should('exist');
});
cy.wait(delay);
});

it('Validate sample data', () => {
moveToPanelHome();
cy.get('.euiTableCellContent').contains(SAMPLE_PANEL).trigger('mouseover').click();
cy.wait(delay * 3);
cy.get('h1').contains(SAMPLE_PANEL).should('exist');
cy.wait(delay);
SAMPLE_VISUALIZATIONS_NAMES.forEach((vizName) =>
cy.get('h5').contains(vizName).should('exist')
);
cy.wait(delay);
});
describe('Clean up all test data', () => {

it('Delete visualizations from event analytics', () => {
moveToEventsHome();
Expand Down Expand Up @@ -572,3 +542,4 @@ describe('Add samples and clean up all test data', () => {
cy.get('.euiTextAlign').contains('No Operational Panels').should('exist');
});
});

0 comments on commit 0b8c57e

Please sign in to comment.