Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ jobs:
source venv/bin/activate
pip install --upgrade pip
pip install -r e2e_playwright/test-requirements.txt
# The venv is cached by a key that only changes daily, so a prior
# run's streamlit-pivot wheel is often already installed at the
# same version as the freshly-built wheel in dist/. When that
# happens, pip silently skips reinstalling ("Requirement already
# satisfied") and the test run exercises stale package code
# instead of the current checkout. Force-reinstall the local
# wheel (without deps) so the venv always reflects HEAD.
pip install --force-reinstall --no-deps dist/streamlit_pivot-*.whl
python -m playwright install --with-deps
- name: Run playwright tests
run: |
Expand Down
7 changes: 5 additions & 2 deletions e2e_playwright/pivot_table_column_config_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@
def render_app(data):
df = data["df"]

# No col dims here so the single-value measure header (`pivot-header-cell`)
# renders and can be inspected by the measure label/help assertions. The
# col-dim + single-value layout does not surface a dedicated measure header
# (values fold into the grid cells), which would render the measure-level
# label/help assertions unreachable.
st.subheader("column_config.label")
st_pivot_table(
df,
key="test_pivot_cc_label",
rows=["Region"],
columns=["Year"],
values=["Revenue"],
aggregation="sum",
column_config={
Expand All @@ -48,7 +52,6 @@ def render_app(data):
df,
key="test_pivot_cc_help",
rows=["Region"],
columns=["Year"],
values=["Revenue"],
aggregation="sum",
column_config={
Expand Down
Loading