mirror of
https://github.com/getredash/redash.git
synced 2026-05-09 12:01:08 -04:00
* Add check for repository url * Use CIRCLE_REPOSITORY_URL directly * Change percy waiting to be with resources instead of time * Add data sources types resource to Edit Data Source + eslint fixes * Separate Page Screenshots in different spec files
24 lines
710 B
JavaScript
24 lines
710 B
JavaScript
describe('Create Data Source', () => {
|
|
beforeEach(() => {
|
|
cy.login();
|
|
cy.visit('/data_sources/new');
|
|
});
|
|
|
|
it('renders the page and takes a screenshot', () => {
|
|
cy.getByTestId('TypePicker').should('contain', 'PostgreSQL');
|
|
cy.percySnapshot('Create Data Source - Types');
|
|
});
|
|
|
|
it('creates a new PostgreSQL data source', () => {
|
|
cy.getByTestId('TypePicker').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.');
|
|
});
|
|
});
|