Skip to content
Merged
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
12 changes: 6 additions & 6 deletions docs/_quartodoc-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,13 @@ quartodoc:
- session.get_current_session
- session.require_active_session
- session.session_context
- session.send_custom_message
- session.send_input_message
- session.on_flush
- session.on_flushed
- session.on_ended
- session.dynamic_route
- reactive.get_current_context
- session.Session.send_custom_message
- session.Session.send_input_message
- session.Session.on_flush
- session.Session.on_flushed
- session.Session.on_ended
- session.Session.dynamic_route
- name: input_handler.input_handlers
dynamic: true
- kind: page
Expand Down
17 changes: 17 additions & 0 deletions tests/playwright/shiny/session/flush/test_on_flush.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
import os

import pytest
from conftest import ShinyAppProc
from controls import OutputTextVerbatim
from playwright.sync_api import Page

on_ci = os.environ.get("CI", "False") == "true"


def test_output_image_kitchen(page: Page, local_app: ShinyAppProc) -> None:

if on_ci:
# 2024-03-22: The tests pass locally, but do not pass on CI. It started with
# https://github.com/posit-dev/py-shiny/commit/2f75a9076c567690f2a6a647ec07cfa9e558ff9c
# , but the changes in that commit were unrelated. We had believe it was an
# update in uvicorn, but removing all other debug statements did not fix the
# issue.
# 2024-03-22 Barret: When inspecting the issue, we found that many log
# INFO entries have different port values. This is concerning.
# https://github.com/posit-dev/py-shiny/pull/1236
pytest.skip("Error with stdout / stderr on CI. Related #1236")

page.goto(local_app.url)

OutputTextVerbatim(page, "all_txt").expect_value(
Expand Down