-
Notifications
You must be signed in to change notification settings - Fork 2
[test] Add testing for v1 and v2 #41
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
59294b7 to
477e5fc
Compare
c4af6e0 to
3b3e96b
Compare
477e5fc to
f80cff3
Compare
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.
Pull Request Overview
This PR adds matrix testing for Streamlit Custom Component v1 and v2 APIs by testing against both Streamlit 1.50.0 (v1) and the latest version (v2).
Key Changes:
- Enabled Custom Component v2 API based on Streamlit version (≥1.51.0)
- Added GitHub Actions matrix strategy to test both Streamlit 1.50.0 and latest
- Updated Playwright tests to detect and handle both iframe-based (v1) and inline (v2) component rendering
Reviewed Changes
Copilot reviewed 4 out of 100 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
streamlit_bokeh/__init__.py |
Uncommented version-gated v2 API activation logic |
e2e_playwright/conftest.py |
Added version detection function and v2 fixture, updated snapshot naming for v2 |
e2e_playwright/bokeh_chart_basics_test.py |
Added conditional test logic for v1 (iframe) vs v2 (inline) selectors |
.github/workflows/playwright.yml |
Added matrix strategy for testing multiple Streamlit versions |
e2e_playwright/__snapshots__/**/*.png |
Added new v2 snapshot reference images |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...ics_test/bokeh_chart-color_scatter-standard-width[light_theme-chromium-color_scatter-v2].png
Show resolved
Hide resolved
sfc-gh-nbellante
left a comment
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.
Couple non-blocking questions
3b3e96b to
b3240c9
Compare
f80cff3 to
96140c3
Compare
b3240c9 to
c95faab
Compare
96140c3 to
ea36266
Compare
ea36266 to
19a4b62
Compare
c95faab to
141de7c
Compare
19a4b62 to
c33bf59
Compare
141de7c to
684d3da
Compare
dee5c67 to
9bda170
Compare
9bda170 to
5177733
Compare
5177733 to
5010145
Compare

TL;DR
Added matrix testing for multiple Streamlit versions and updated Playwright tests to support both Custom Component v1 and v2 APIs.
What changed?