Skip to content

Commit 27aff06

Browse files
bypass element overlap when typing (#1558) (#1560)
Signed-off-by: Amardeepsingh Siglani <[email protected]> (cherry picked from commit bceec36) Co-authored-by: Amardeepsingh Siglani <[email protected]>
1 parent 0e11e06 commit 27aff06

File tree

1 file changed

+11
-5
lines changed
  • cypress/integration/plugins/security-analytics-dashboards-plugin

1 file changed

+11
-5
lines changed

cypress/integration/plugins/security-analytics-dashboards-plugin/2_rules.spec.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -494,24 +494,30 @@ describe('Rules', () => {
494494

495495
// selection name field
496496
getSelectionPanelByIndex(0).within(() =>
497-
getSelectionNameField().type('{selectall}').type('{backspace}')
497+
getSelectionNameField()
498+
.type('{selectall}', { force: true })
499+
.type('{backspace}', { force: true })
498500
);
499501
toastShouldExist();
500502
getSelectionPanelByIndex(0).within(() =>
501-
getSelectionNameField().type('Selection_1')
503+
getSelectionNameField().type('Selection_1', { force: true })
502504
);
503505

504506
// selection map key field
505507
getSelectionPanelByIndex(0).within(() =>
506-
getMapKeyField().type('{selectall}').type('{backspace}')
508+
getMapKeyField()
509+
.type('{selectall}', { force: true })
510+
.type('{backspace}', { force: true })
507511
);
508512
getSelectionPanelByIndex(0).within(() =>
509-
getMapKeyField().type('FieldKey')
513+
getMapKeyField().type('FieldKey', { force: true })
510514
);
511515

512516
// selection map value field
513517
getSelectionPanelByIndex(0).within(() =>
514-
getMapValueField().type('{selectall}').type('{backspace}')
518+
getMapValueField()
519+
.type('{selectall}', { force: true })
520+
.type('{backspace}', { force: true })
515521
);
516522
toastShouldExist();
517523

0 commit comments

Comments
 (0)