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 dc1f588 commit 2dcb671Copy full SHA for 2dcb671
e2e/input_numeric/test_input_numeric.py
@@ -0,0 +1,18 @@
1
+from playwright.sync_api import Page, expect
2
+from conftest import ShinyAppProc, create_doc_example_fixture
3
+import controls
4
+
5
+app = create_doc_example_fixture("input_numeric")
6
7
8
+def test_input_numeric(page: Page, app: ShinyAppProc) -> None:
9
+ page.goto(app.url)
10
11
+ obs = controls.NumericInput(page, "obs")
12
+ obs.expect.to_have_value("10")
13
+ output = page.locator("#value")
14
+ expect(output).to_have_text("10")
15
16
+ obs.loc.fill("21")
17
+ obs.expect.to_have_value("21")
18
+ expect(output).to_have_text("21")
0 commit comments