Files
redash/cypress/integration/data-source/create_data_source_spec.js
Gabriel Dutra 823e4ccdd6 Migrate DynamicForm to React (#3209)
* create DynamicForm React component

* Render fields based on target in DynamicForm

* Add missing title property to fields

* Fix style properties in DynamicForm

* Render File fields in DynamicForm

* Use React for middle component instead of Angular

* Functional save button

* Update label style

* Render functional actions

* Handle file inputs

* Update render methods to fix code climate issues

* Fix ant input number showing duplicate arrows

* Update DynamicForm style to be vertical

* Separate imports from antd in DynamicForm

* Add Feedback Icons to DynamicForm

* Change Action props on DynamicForm
- use type and pullRight instead of class prop
- update data sources and destinations pages accordingly

* Remove setDefaults method from DynamicForm fields

* Update antd version

* Remove unnecessary class selectors

* Remove another unnecessary class selector
2019-01-15 14:23:33 +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.');
});
});