-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 some flaky e2e tests #8688
Fix some flaky e2e tests #8688
Conversation
dialog.locator("div", has_text="Large-width Dialog").click() | ||
submit_button = dialog.get_by_test_id("stButton") | ||
expect(submit_button).to_be_visible() | ||
submit_button.get_by_test_id("baseButton-secondary").hover() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
submit_button.hover()
doesn't work, and we need a more narrow locator here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, I tried the other one first but apparently the effect happens on the button element itself!
462b088
to
1318724
Compare
## Describe your changes Similar to the dataframe selection tests, we want to test chart selections with callbacks and inside forms or fragments explicitly. Also fix two issues with the dataframe selection e2e tests.
Describe your changes
For some tests its difficult to reproduce them, so this is a best-effort change based on patterns we have seen in the past.
st_dialog_test.py:
st_altair_chart_basic_select_test:
test_point_bar_chart_displays_selection_text
st_date_input_test:
custom_components/popular_components:
GitHub Issue Link (if applicable)
Testing Plan
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.