Skip to content

Commit

Permalink
chore: playground test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilev-alex committed Dec 21, 2023
1 parent 79d033e commit e458448
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/cubejs-testing/cypress/integration/rollup-designer.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ context('Playground: Rollup Designer', () => {
cy.getByTestId('rd-modal').should('be.visible');

cy.getByTestId('member-tag-Orders.Count').should('exist');
cy.getByTestId('rd-query-tab').click();
cy.getByTestId('rd-query-tab').click({
timeout: 60 * 1000,
force: true,
});
});

it('applies settings', () => {
Expand All @@ -58,9 +61,13 @@ context('Playground: Rollup Designer', () => {
cy.getByTestId('rd-settings-tab').click();
cy.getByTestId('prism-code').should('contain.text', 'main: ');
cy.getByTestId('rd-input-every').clear().type('3');
cy.getByTestId('rd-select-every-granularity').find('input').type('Day{enter}', { force: true });
cy.getByTestId('rd-select-every-granularity')
.find('input')
.type('Day{enter}', { force: true });
cy.getByTestId('prism-code').should('contain.text', 'every: `3 day`');
cy.getByTestId('rd-add-btn').should('be.visible').should('not.be.disabled');
cy.getByTestId('rd-add-btn')
.should('be.visible')
.should('not.be.disabled');
});
});
});

0 comments on commit e458448

Please sign in to comment.