test_pages.py 256 B

12345678910
  1. from nicegui import ui
  2. async def test_title(server, selenium):
  3. @ui.page('/', title='My Custom Title')
  4. def page():
  5. ui.label('hello world')
  6. server.start()
  7. selenium.get(server.base_url)
  8. assert "My Custom Title" in selenium.title