Files
redash/cypress/integration/data-source/create_data_source_spec.js
Gabriel Dutra 84d5becf2a Update form text colors (#3296)
* Create ant variables and update form colors

* Remove less extension from imports in ant.less

* Update font-weight for labels

* Add percy snapshot for create data source page

* Remove bold in labels only for checkboxes and radio buttons
2019-01-20 09:41:52 +02:00

20 lines
582 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.');
cy.percySnapshot('Create Data Source page');
});
});