mirror of
https://github.com/getredash/redash.git
synced 2025-12-19 17:37:19 -05:00
22 lines
523 B
JavaScript
22 lines
523 B
JavaScript
describe('Create Query', () => {
|
|
beforeEach(() => {
|
|
cy.login();
|
|
cy.visit('/queries/new');
|
|
});
|
|
|
|
it('executes the query', () => {
|
|
cy.getByTestId('SelectDataSource')
|
|
.click()
|
|
.contains('Test PostgreSQL').click();
|
|
|
|
cy.getByTestId('QueryEditor')
|
|
.get('.ace_text-input')
|
|
.type('SELECT id, name FROM organizations{esc}', { force: true });
|
|
|
|
cy.getByTestId('ExecuteButton').click();
|
|
|
|
cy.getByTestId('DynamicTable').should('exist');
|
|
cy.percySnapshot('Edit Query');
|
|
});
|
|
});
|