Skip to content

Commit

Permalink
Fix E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Jun 4, 2024
1 parent f42a4df commit a98ab9f
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe('Color scheme control', () => {
describe('VizType control', () => {
beforeEach(() => {
interceptChart({ legacy: false }).as('tableChartData');
interceptChart({ legacy: true }).as('lineChartData');
interceptChart({ legacy: false }).as('bigNumberChartData');
});

it('Can change vizType', () => {
Expand All @@ -126,15 +126,14 @@ describe('VizType control', () => {
cy.contains('View all charts').click();

cy.get('.ant-modal-content').within(() => {
cy.get('button').contains('Evolution').click(); // change categories
cy.get('[role="button"]').contains('Line Chart').click();
cy.get('button').contains('KPI').click(); // change categories
cy.get('[role="button"]').contains('Big Number').click();
cy.get('button').contains('Select').click();
});

cy.get('button[data-test="run-query-button"]').click();
cy.verifySliceSuccess({
waitAlias: '@lineChartData',
chartSelector: 'svg',
waitAlias: '@bigNumberChartData',
});
});
});
Expand Down

0 comments on commit a98ab9f

Please sign in to comment.