From 77285d9fa3d27f886de4ea5864989df81152e070 Mon Sep 17 00:00:00 2001 From: Gabriel Dutra Date: Mon, 11 Mar 2019 16:02:39 -0300 Subject: [PATCH] Use cy.click instead of cy.wait --- cypress/integration/data-source/create_data_source_spec.js | 2 +- cypress/integration/destination/create_destination_spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/data-source/create_data_source_spec.js b/cypress/integration/data-source/create_data_source_spec.js index 983a37f632..61a9191aa8 100644 --- a/cypress/integration/data-source/create_data_source_spec.js +++ b/cypress/integration/data-source/create_data_source_spec.js @@ -6,7 +6,7 @@ describe('Create Data Source', () => { it('renders the page and takes a screenshot', () => { cy.getByTestId('CreateSourceDialog').should('contain', 'PostgreSQL'); - cy.wait(1000); + cy.getByTestId('SearchSource').click(); cy.percySnapshot('Create Data Source - Types'); }); diff --git a/cypress/integration/destination/create_destination_spec.js b/cypress/integration/destination/create_destination_spec.js index 9c78b60d0b..b04c03df5c 100644 --- a/cypress/integration/destination/create_destination_spec.js +++ b/cypress/integration/destination/create_destination_spec.js @@ -6,7 +6,7 @@ describe('Create Destination', () => { it('renders the page and takes a screenshot', () => { cy.getByTestId('CreateSourceDialog').should('contain', 'Email'); - cy.wait(1000); + cy.getByTestId('SearchSource').click(); cy.percySnapshot('Create Destination - Types'); }); });