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

[Cypress Updates] Fix flaky notebooks test #2280

Merged
merged 3 commits into from
Dec 6, 2024

Conversation

ritvibhatt
Copy link
Contributor

@ritvibhatt ritvibhatt commented Dec 6, 2024

Description

Updates notebook renaming test to clear input before typing new name to match up with expected name

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • 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.

@ritvibhatt ritvibhatt marked this pull request as ready for review December 6, 2024 17:50

cy.get('[data-test-subj="notebook-edit-icon"]').click();
cy.get('input.euiFieldText[data-autofocus="true"]').focus().type(' (rename)');
cy.get('input.euiFieldText[data-autofocus="true"]').clear().type(TEST_NOTEBOOK + ' (rename)');
Copy link
Collaborator

Choose a reason for hiding this comment

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

suggestion (if-minor): We could consider adding a data-test-subj for this element directly to locate it more reliably

@ps48 ps48 merged commit a387358 into opensearch-project:main Dec 6, 2024
18 of 25 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 6, 2024
Signed-off-by: Ritvi Bhatt <[email protected]>
Co-authored-by: Ritvi Bhatt <[email protected]>
(cherry picked from commit a387358)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ps48 pushed a commit that referenced this pull request Dec 6, 2024
(cherry picked from commit a387358)

Signed-off-by: Ritvi Bhatt <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ritvi Bhatt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants