Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Fix e2e test caused by new EuiComboBox added on CreateDetector page (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yizheliu-amazon authored Jul 14, 2020
1 parent fe0b911 commit 48056fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .cypress/integration/ad/workflow/create_detector.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 48056fc

Please sign in to comment.