Skip to content

Commit 5b7456d

Browse files
committed
Add timeout for contains not exist
Signed-off-by: Lin Wang <[email protected]>
1 parent ada4148 commit 5b7456d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cypress/integration/plugins/dashboards-assistant/mds_query_enhancements_suggest_anomaly_detector_spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ const testSuggestAD = (url) => {
143143
cy.get('[data-test-subj="detectorNameTextInputFlyout"]').type(
144144
'test-detector-name' + Math.floor(Math.random() * 100) + 1
145145
);
146-
cy.contains('Detector name cannot be empty').should('not.exist');
146+
cy.contains('Detector name cannot be empty', { timeout: 10000 }).should(
147+
'not.exist'
148+
);
147149

148150
// Test interval input
149151
cy.get('[data-test-subj="detectionInterval"]').clear().type('15');

0 commit comments

Comments
 (0)