فهرست منبع

Add better info about how to write a complete test (#3913)

Rodja Trappe 6 ماه پیش
والد
کامیت
8ec635fcb0
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      website/documentation/content/user_documentation.py

+ 2 - 2
website/documentation/content/user_documentation.py

@@ -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.