Skip to content

Conversation

@sfc-gh-bnisco
Copy link
Contributor

@sfc-gh-bnisco sfc-gh-bnisco commented Nov 20, 2025

TL;DR

Added matrix testing for multiple Streamlit versions and updated Playwright tests to support both Custom Component v1 and v2 APIs.

What changed?

  • Modified the GitHub workflow to test against both Streamlit 1.50.0 and the latest version
  • Updated the Playwright test framework to detect and handle both Custom Component v1 and v2 APIs
  • Added new snapshot references for v2 API rendering
  • Enhanced test selectors to work with both iframe-based (v1) and inline (v2) component rendering

Copy link
Contributor Author

sfc-gh-bnisco commented Nov 20, 2025

This was referenced Nov 20, 2025
@sfc-gh-bnisco sfc-gh-bnisco force-pushed the feat-ccv2-dual-test branch 2 times, most recently from c4af6e0 to 3b3e96b Compare November 20, 2025 00:50
Copilot finished reviewing on behalf of sfc-gh-bnisco November 20, 2025 18:41
Copy link

Copilot AI left a 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.

Copy link

@sfc-gh-nbellante sfc-gh-nbellante left a 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

@sfc-gh-bnisco sfc-gh-bnisco marked this pull request as ready for review November 21, 2025 19:43
@sfc-gh-bnisco sfc-gh-bnisco changed the base branch from feat-ccv2-dual-v2 to graphite-base/41 November 24, 2025 22:03
@graphite-app graphite-app bot changed the base branch from graphite-base/41 to main November 24, 2025 22:12
@sfc-gh-bnisco sfc-gh-bnisco force-pushed the feat-ccv2-dual-test branch 3 times, most recently from dee5c67 to 9bda170 Compare November 25, 2025 03:16
@sfc-gh-bnisco sfc-gh-bnisco merged commit d96432e into main Nov 25, 2025
5 checks passed
@sfc-gh-bnisco sfc-gh-bnisco deleted the feat-ccv2-dual-test branch November 25, 2025 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants