From 48056fcf58bebabc30e4f7a765d5f1a461ffc788 Mon Sep 17 00:00:00 2001 From: Yizhe Liu <59710443+yizheliu-amazon@users.noreply.github.com> Date: Mon, 13 Jul 2020 19:18:15 -0700 Subject: [PATCH] Fix e2e test caused by new EuiComboBox added on CreateDetector page (#252) --- .cypress/integration/ad/workflow/create_detector.spec.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.cypress/integration/ad/workflow/create_detector.spec.ts b/.cypress/integration/ad/workflow/create_detector.spec.ts index 423b369f..6fc76915 100644 --- a/.cypress/integration/ad/workflow/create_detector.spec.ts +++ b/.cypress/integration/ad/workflow/create_detector.spec.ts @@ -27,12 +27,14 @@ context('Create detector', () => { cy.get('input[name="detectorName"]').type(detectorName, { force: true }); cy.mockGetIndexMappingsOnAction('index_mapping_response.json', () => { - cy.get('input[role="textbox"]').type('e2e-test-index{enter}', { + cy.get('input[role="textbox"]').first().type('e2e-test-index{enter}', { force: true, }); }); - cy.get('select[name="timeField"]').select('timestamp', { force: true }); + cy.get('input[role="textbox"]').last().type('timestamp{enter}', { + force: true, + }); cy.mockCreateDetectorOnAction('post_detector_response.json', () => { cy.get('.euiButton--primary.euiButton--fill').click({ force: true });