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.
ui.separator
1 parent 0edf2d3 commit b2fe576Copy full SHA for b2fe576
tests/test_separator.py
@@ -0,0 +1,25 @@
1
+from nicegui import ui
2
+from nicegui.testing import Screen
3
+
4
5
+def test_separator(screen: Screen):
6
+ @ui.page('/column')
7
+ def index():
8
+ with ui.column():
9
+ ui.button('1')
10
+ ui.separator()
11
+ ui.button('2')
12
+ @ui.page('/row')
13
14
+ with ui.row():
15
16
+ ui.separator().props('vertical')
17
18
19
20
+ screen.open('/column')
21
+ assert screen.find_by_tag('hr').value_of_css_property('width') == '100%'
22
23
+ screen.wait(0.5)
24
+ screen.open('/row')
25
+ assert screen.find_by_tag('hr').value_of_css_property('width') == '1px'
0 commit comments