From 4f74a8102c4590d514675cea9c21360a66141230 Mon Sep 17 00:00:00 2001 From: Amardeepsingh Siglani Date: Tue, 10 Sep 2024 13:53:45 -0500 Subject: [PATCH] bypass element overlap when typing (#1558) Signed-off-by: Amardeepsingh Siglani (cherry picked from commit bceec36330f256b470f5b908ce318a4277e8e247) --- .../2_rules.spec.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/cypress/integration/plugins/security-analytics-dashboards-plugin/2_rules.spec.js b/cypress/integration/plugins/security-analytics-dashboards-plugin/2_rules.spec.js index 95a80b606..0deee4297 100644 --- a/cypress/integration/plugins/security-analytics-dashboards-plugin/2_rules.spec.js +++ b/cypress/integration/plugins/security-analytics-dashboards-plugin/2_rules.spec.js @@ -494,24 +494,30 @@ describe('Rules', () => { // selection name field getSelectionPanelByIndex(0).within(() => - getSelectionNameField().type('{selectall}').type('{backspace}') + getSelectionNameField() + .type('{selectall}', { force: true }) + .type('{backspace}', { force: true }) ); toastShouldExist(); getSelectionPanelByIndex(0).within(() => - getSelectionNameField().type('Selection_1') + getSelectionNameField().type('Selection_1', { force: true }) ); // selection map key field getSelectionPanelByIndex(0).within(() => - getMapKeyField().type('{selectall}').type('{backspace}') + getMapKeyField() + .type('{selectall}', { force: true }) + .type('{backspace}', { force: true }) ); getSelectionPanelByIndex(0).within(() => - getMapKeyField().type('FieldKey') + getMapKeyField().type('FieldKey', { force: true }) ); // selection map value field getSelectionPanelByIndex(0).within(() => - getMapValueField().type('{selectall}').type('{backspace}') + getMapValueField() + .type('{selectall}', { force: true }) + .type('{backspace}', { force: true }) ); toastShouldExist();