Skip to content

Conversation

@lukasmasuch
Copy link
Collaborator

@lukasmasuch lukasmasuch commented Jan 9, 2025

Describe your changes

The label_markdown e2e test was quite annoying since it contains hundreds of snapshots across various that required repeated updates for unrelated changes.

This PR refactors this test and improves our capabilities of testing markdown features by checking the underlying DOM elements instead of relying on screenshots. It also adds a screenshot test to every individual element test to check that the element correctly supports markdown in labels.


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 added security-assessment-completed Security assessment has been completed for PR impact:internal PR changes only affect internal code change:refactor PR contains code refactoring without behavior change labels Jan 9, 2025
@lukasmasuch lukasmasuch changed the title Refactor label_markdown e2e test Refactor label_markdown e2e test Jan 9, 2025
@lukasmasuch lukasmasuch marked this pull request as ready for review January 9, 2025 04:02
@lukasmasuch lukasmasuch changed the title Refactor label_markdown e2e test Refactor label_markdown e2e test for better testing of markdown features Jan 10, 2025
@lukasmasuch lukasmasuch merged commit 7aa818b into develop Jan 13, 2025
33 checks passed
@lukasmasuch lukasmasuch deleted the refactor/label-markdown-e2e-test branch January 13, 2025 15:23
edegp pushed a commit to edegp/streamlit that referenced this pull request Jan 19, 2025
…tures (streamlit#10141)

## Describe your changes

The `label_markdown` e2e test was quite annoying since it contains
hundreds of snapshots across various that required repeated updates for
unrelated changes.

This PR refactors this test and improves our capabilities of testing
markdown features by checking the underlying DOM elements instead of
relying on screenshots. It also adds a screenshot test to every
individual element test to check that the element correctly supports
markdown in labels.

---

**Contribution License Agreement**

By submitting this pull request you agree that all contributions to this
project are made under the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:refactor PR contains code refactoring without behavior 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