mirror of
https://github.com/getredash/redash.git
synced 2026-05-09 12:01:08 -04:00
* 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
19 lines
533 B
JavaScript
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.');
|
|
});
|
|
});
|