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

Fix in-context reporting tests #1088

Merged
merged 3 commits into from
Feb 16, 2024
Merged

Conversation

Swiddis
Copy link
Contributor

@Swiddis Swiddis commented Feb 16, 2024

Description

When checking for a reporting download being triggered, the tests are waiting for a loading screen. This causes test failures if the download happens faster than React renders. In one test run, the test failed when the API returned in 18 ms (whereas a passing test in the same run had a return time of 224 ms). This PR updates the tests to instead check for the success toast.

Issues Resolved

N/A

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: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
@Swiddis
Copy link
Contributor Author

Swiddis commented Feb 16, 2024

Will also need to forward-port to 2.x and main, starting here since FTR is failing in RC generation.

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Copy link
Contributor

@derek-ho derek-ho left a comment

Choose a reason for hiding this comment

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

Thanks

@kavilla kavilla merged commit 651db8d into opensearch-project:2.12 Feb 16, 2024
38 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 16, 2024
* Fix in-context report tests

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

* Switch to checking for success toast

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

* Fix syntax

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

---------

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
(cherry picked from commit 651db8d)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 16, 2024
* Fix in-context report tests

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

* Switch to checking for success toast

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

* Fix syntax

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

---------

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
(cherry picked from commit 651db8d)
CCongWang pushed a commit that referenced this pull request Feb 16, 2024
* Fix in-context report tests

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

* Switch to checking for success toast

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

* Fix syntax

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

---------

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
(cherry picked from commit 651db8d)

Co-authored-by: Simeon Widdis <sawiddis@amazon.com>
CCongWang pushed a commit that referenced this pull request Feb 16, 2024
* Fix in-context report tests

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

* Switch to checking for success toast

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

* Fix syntax

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

---------

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
(cherry picked from commit 651db8d)

Co-authored-by: Simeon Widdis <sawiddis@amazon.com>
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