Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Alerting 2.10] Override element covered check for name input in Composite monitor creation #865

Conversation

amsiglan
Copy link
Contributor

Description

We are seeing flaky behavior when creating composite monitor. The name input element is sometimes not in view which prevents cypress from typing the name. Since this behavior won't happen when a user is creating the monitor it is safe to force the typing in the name element and the monitor selector elements.

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Amardeepsingh Siglani <[email protected]>
@amsiglan amsiglan changed the title forcing name typing [Alerting 2.10] Override element covered check for name input in Composite monitor creation Sep 15, 2023
.type('{selectall}')
.type('{backspace}')
.type('Composite trigger');
.type('{selectall}', { force: true })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the past I saw potentially cypress's focus are taken over, so would the typing delay here help as well (like on line 86)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There we have delay because it is a combo-box and we wait for the dropdown to show up, where as here it is an input box, so we should not need a delay

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though I will take a second pass later to ensure we have focus calls on all the input elements to make the tests more robust

@kavilla kavilla merged commit eaa4a77 into opensearch-project:2.10 Sep 15, 2023
amsiglan added a commit to amsiglan/opensearch-dashboards-functional-test that referenced this pull request Sep 19, 2023
kavilla pushed a commit that referenced this pull request Oct 6, 2023
* forcing name typing (#865)

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* [Alerting] use input element for typing (#872)

When selecting delegate monitors for composite monitor creation, we are typing in the combo box div element which is throwing invalid typing element error. This PR fixes that by selecting the child input element instead.

This change is already part of #866 for 2.x

Issues Resolved:

opensearch-project/alerting-dashboards-plugin#728

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* wait before checking update status

Signed-off-by: Amardeepsingh Siglani <[email protected]>

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants