Skip to content

Commit

Permalink
bypass element overlap when typing (#1558) (#1560)
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
(cherry picked from commit bceec36)

Co-authored-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
  • Loading branch information
opensearch-trigger-bot[bot] and amsiglan authored Sep 18, 2024
1 parent 0e11e06 commit 27aff06
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 27aff06

Please sign in to comment.