Skip to content

Commit 9f2a29d

Browse files
committed
Fix test
1 parent d1b53ff commit 9f2a29d

File tree

3 files changed

+17
-52
lines changed

3 files changed

+17
-52
lines changed

tests/playwright/shiny/components/table/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ def nw_table():
2020
"Data type:"
2121

2222
@render.code
23-
def pd_type():
23+
def nw_df_type():
2424
return str(type(nw_df))

tests/playwright/shiny/components/table/test_sidebar.py

Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import re
2+
3+
from playwright.sync_api import Page
4+
5+
from shiny.playwright import controller
6+
from shiny.run import ShinyAppProc
7+
8+
9+
def test_table_data_support(page: Page, local_app: ShinyAppProc) -> None:
10+
page.goto(local_app.url)
11+
12+
table = controller.OutputTable(page, "nw_table")
13+
14+
table.expect_nrow(2)
15+
16+
controller.OutputCode(page, "nw_df_type").expect_value(re.compile("narwhals"))

0 commit comments

Comments
 (0)