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
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,16 @@ install-playwright:
install-trcli:
which trcli || pip install trcli

install-rsconnect: ## install the main version of rsconnect till pypi version supports shiny express
pip install git+https://github.com/rstudio/rsconnect-python.git#egg=rsconnect-python

playwright-shiny: install-playwright ## end-to-end tests with playwright
pytest tests/playwright/shiny/$(SUB_FILE)

playwright-examples: install-playwright ## end-to-end tests on examples with playwright
pytest tests/playwright/examples

playwright-deploys: install-playwright ## end-to-end tests on deploys with playwright
playwright-deploys: install-playwright install-rsconnect ## end-to-end tests on deploys with playwright
pytest tests/playwright/deploys/$(SUB_FILE) -s

testrail-junit: install-playwright install-trcli ## end-to-end tests with playwright and generate junit report
Expand Down
4 changes: 2 additions & 2 deletions tests/playwright/shiny/shiny-express/page_default/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@

with layout.column(width=6):
# check height is below 300px - bounding box
with layout.navset_card_tab(id="express_navset_card_tab"):
with layout.navset_card(id="express_navset_card_tab", type="tab"):
with layout.nav(title="Two"):
...


with layout.column(width=6):
with layout.row():
with layout.navset_tab(id="express_navset_tab"):
with layout.navset(id="express_navset_tab", type="tab"):
for fn_txt, fn in [
("pre", layout.pre),
("div", layout.div),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
from utils.express_utils import verify_express_page_default


def test_express_accordion(page: Page, local_app: ShinyAppProc) -> None:
def test_page_default(page: Page, local_app: ShinyAppProc) -> None:
page.goto(local_app.url)
verify_express_page_default(page)