Skip to content

Conversation

@raethlein
Copy link
Collaborator

@raethlein raethlein commented Oct 25, 2024

Describe your changes

In #9494 a dynamic way was added to calculate the slider labels. It looks like the added snapshot tests are flaky (on Firefox). It looks like the pixel values can have a few decimal values which seems to shift the label slightly, as can be seen in the following diff screenshot that highlights the area that changed (as generated by our e2e snapshot tests):

diff_st_slider-overlap_left light_theme-firefox

GitHub Issue Link (if applicable)

Testing Plan

  • Explanation of why no additional tests are needed
  • Unit Tests (JS and/or Python)
  • E2E Tests
  • Any manual testing needed?

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@raethlein raethlein added security-assessment-completed Security assessment has been completed for PR impact:internal PR changes only affect internal code change:chore PR contains maintenance or housekeeping change labels Oct 25, 2024
@raethlein raethlein marked this pull request as ready for review October 25, 2024 07:02
Copy link
Collaborator

@lukasmasuch lukasmasuch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@raethlein raethlein merged commit 7408728 into develop Oct 25, 2024
edegp pushed a commit to edegp/streamlit that referenced this pull request Jan 19, 2025
## Describe your changes

In streamlit#9494 a dynamic way was
added to calculate the slider labels. It looks like the added snapshot
tests are flaky (on Firefox). It looks like the pixel values can have a
few decimal values which seems to shift the label slightly.

## GitHub Issue Link (if applicable)

## Testing Plan

- Fix flaky tests, so change is covered by them.

---

**Contribution License Agreement**

By submitting this pull request you agree that all contributions to this
project are made under the Apache 2.0 license.
@lukasmasuch lukasmasuch deleted the fix/slider-tests branch March 7, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:chore PR contains maintenance or housekeeping change impact:internal PR changes only affect internal code security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants