Files
redash/cypress/integration/data-source/edit_data_source_spec.js
Gabriel Dutra 2c705712fc Fixes to Percy (#3440)
* 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
2019-02-18 16:30:48 -03:00

16 lines
425 B
JavaScript

describe('Edit Data Source', () => {
beforeEach(() => {
cy.login();
cy.visit('/data_sources/1');
});
it('renders the page and takes a screenshot', () => {
cy.getByTestId('DataSource').within(() => {
cy.getByTestId('Name').should('have.value', 'Test PostgreSQL');
cy.getByTestId('Host').should('have.value', 'postgres');
});
cy.percySnapshot('Edit Data Source - PostgreSQL');
});
});