We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1b53ff commit 9f2a29dCopy full SHA for 9f2a29d
tests/playwright/shiny/components/table/app.py
@@ -20,5 +20,5 @@ def nw_table():
20
"Data type:"
21
22
@render.code
23
- def pd_type():
+ def nw_df_type():
24
return str(type(nw_df))
tests/playwright/shiny/components/table/test_sidebar.py
tests/playwright/shiny/components/table/test_table.py
@@ -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