Files
redash/cypress/integration/data-source/create_data_source_spec.js
2018-11-07 14:37:08 +01:00

20 lines
559 B
JavaScript

describe('Create Data Source', () => {
beforeEach(() => {
cy.login();
cy.visit('/data_sources');
});
it('creates a new PostgreSQL data source', () => {
cy.contains('New Data Source').click();
cy.contains('PostgreSQL').click();
cy.get('[name=targetName]').type('Redash');
cy.get('[data-cy=Host]').type('{selectall}localhost');
cy.get('[data-cy=User]').type('postgres');
cy.get('[data-cy=Password]').type('postgres');
cy.get('[data-cy="Database Name"]').type('postgres{enter}');
cy.contains('Saved.');
});
});