Skip to content

Commit

Permalink
Add better info about how to write a complete test (#3913)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja authored Oct 23, 2024
1 parent 43e73f2 commit 8ec635f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/documentation/content/user_documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ def user_fixture():
ui.markdown('''
We recommend utilizing the `user` fixture instead of the [`screen` fixture](/documentation/screen) wherever possible
because execution is as fast as unit tests and it does not need Selenium as a dependency
when loaded via `pytest_plugins = ['nicegui.testing.user_plugin']`
(see [project structure](/documentation/project_structure)).
when loaded via `pytest_plugins = ['nicegui.testing.user_plugin']`.
The `user` fixture cuts away the browser and replaces it by a lightweight simulation entirely in Python.
See [project structure](/documentation/project_structure) for a description of the setup.
You can assert to "see" specific elements or content, click buttons, type into inputs and trigger events.
We aimed for a nice API to write acceptance tests which read like a story and are easy to understand.
Expand Down

0 comments on commit 8ec635f

Please sign in to comment.