mirror of
https://github.com/getredash/redash.git
synced 2026-05-09 21:02:27 -04:00
* 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
20 lines
582 B
JavaScript
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');
|
|
});
|
|
});
|