Files
redash/cypress/integration/data-source/create_data_source_spec.js
Gabriel Dutra 37821ee008 Add Percy Page Screenshots (#3338)
* Add Percy Page Screenshots

* Add missing space
2019-01-28 10:21:42 +02:00

19 lines
533 B
JavaScript

describe('Create Data Source', () => {
beforeEach(() => {
cy.login();
cy.visit('/data_sources/new');
});
it('creates a new PostgreSQL data source', () => {
cy.getByTestId('DatabaseSource').contains('PostgreSQL').click();
cy.getByTestId('Name').type('Redash');
cy.getByTestId('Host').type('{selectall}postgres');
cy.getByTestId('User').type('postgres');
cy.getByTestId('Password').type('postgres');
cy.getByTestId('Database Name').type('postgres{enter}');
cy.contains('Saved.');
});
});