Skip to content

Commit 08961ef

Browse files
committed
chore: make check-fix
1 parent 4768036 commit 08961ef

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/playwright/shiny/inputs/input_text_update_on/app.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,10 @@ def text_input_ui(update_on: Literal["change", "blur"] = "change"):
7272
ui.layout_columns(
7373
ui.input_text("txt", "Text", value="Hello", update_on=update_on),
7474
ui.div("Text", ui.output_text_verbatim("value_txt")),
75-
7675
ui.input_text_area("txtarea", "Text Area", update_on=update_on),
7776
ui.div("Text Area", ui.output_text_verbatim("value_txtarea")),
78-
7977
ui.input_numeric("num", "Numeric", value=1, update_on=update_on),
8078
ui.div("Numeric", ui.output_text_verbatim("value_num")),
81-
8279
ui.input_password("pwd", "Password", update_on=update_on),
8380
ui.div("Password", ui.output_text_verbatim("value_pwd")),
8481
col_widths=6,

tests/playwright/shiny/inputs/input_text_update_on/test_input_text_update_on.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
def click_action_button(page: Page, x: controller.InputActionButton):
1212
"""Click the button without moving focus (changes input, doesn't change value)"""
13-
page.evaluate(
14-
"([id]) => document.getElementById(id).click()", [x.id]
15-
)
13+
page.evaluate("([id]) => document.getElementById(id).click()", [x.id])
14+
1615

1716
def test_text_input_change(page: Page, local_app: ShinyAppProc):
1817
page.goto(local_app.url)
@@ -142,11 +141,15 @@ def test_text_area_input_blur(page: Page, local_app: ShinyAppProc):
142141
output.expect_value(the_value) # changes after Control+Enter
143142

144143
click_action_button(page, update)
145-
input.expect_value("The old oak tree whispered secrets to the wind.\nClouds painted shadows on the mountain peaks.")
144+
input.expect_value(
145+
"The old oak tree whispered secrets to the wind.\nClouds painted shadows on the mountain peaks."
146+
)
146147
output.expect_value(the_value)
147148

148149
click_action_button(page, update)
149-
input.expect_value("Clouds painted shadows on the mountain peaks.\nStars danced across the midnight canvas.")
150+
input.expect_value(
151+
"Clouds painted shadows on the mountain peaks.\nStars danced across the midnight canvas."
152+
)
150153
output.expect_value(the_value)
151154

152155
the_value = "Clouds painted shadows on the mountain peaks.\nStars danced across the midnight canvas."

0 commit comments

Comments
 (0)