12345678910111213141516171819202122232425 |
- from nicegui import ui
- from .user import User
- def test_rendering_page(user: User):
- ui.label('test label')
- with ui.row().classes('positive'):
- ui.input('test input', placeholder='some placeholder')
- with ui.column():
- ui.label('1')
- ui.label('2')
- ui.label('3')
- user.open('/')
- assert user.page() == '''Title: NiceGUI
- test label
- row [class: items-start positive]
- test input: some placeholder [class: no-wrap items-start standard labeled]
- column [class: items-start]
- 1
- 2
- 3
- '''
|