Skip to content

Commit

Permalink
fix: Error on Cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Apr 6, 2023
1 parent 8d14420 commit 4a0a879
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ describe('Dashboard edit', () => {

it('should filter charts', () => {
interceptCharts();
cy.get('[role="checkbox"]').click();
cy.getBySel('dashboard-charts-filter-search-input').type('Unicode');
cy.wait('@filtering');
cy.getBySel('chart-card')
Expand All @@ -734,6 +735,7 @@ describe('Dashboard edit', () => {
});

it('should disable the Save button when undoing', () => {
cy.get('[role="checkbox"]').click();
dragComponent('Unicode Cloud', 'card-title', false);
cy.getBySel('header-save-button').should('be.enabled');
discardChanges();
Expand All @@ -747,11 +749,13 @@ describe('Dashboard edit', () => {
});

it('should add charts', () => {
cy.get('[role="checkbox"]').click();
dragComponent();
cy.getBySel('dashboard-component-chart-holder').should('have.length', 1);
});

it('should remove added charts', () => {
cy.get('[role="checkbox"]').click();
dragComponent('Unicode Cloud');
cy.getBySel('dashboard-component-chart-holder').should('have.length', 1);
cy.getBySel('dashboard-delete-component-button').click();
Expand Down Expand Up @@ -793,6 +797,7 @@ describe('Dashboard edit', () => {
});

it('should save', () => {
cy.get('[role="checkbox"]').click();
dragComponent();
cy.getBySel('header-save-button').should('be.enabled');
saveChanges();
Expand Down

0 comments on commit 4a0a879

Please sign in to comment.