Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add documentation on usage of `OPENPROJECT_TESTING_SLOWDOWN_FACTOR`

Aaron Contreras814b17405a48
diff --git a/docs/development/running-tests/README.md b/docs/development/running-tests/README.md
index e9e4d80b98e..ea470270e8e 100644
--- a/docs/development/running-tests/README.md
+++ b/docs/development/running-tests/README.md
@@ -455,6 +455,7 @@ Possible reasons are:
* To help diagnose why a system test is failing:
* Browser screenshots are created for failing system tests involving a browser. You can find them in the job log output.
* Try running with `OPENPROJECT_TESTING_NO_HEADLESS=1` to view what the browser is doing. Use `OPENPROJECT_TESTING_AUTO_DEVTOOLS=1` to have DevTools opened so that you can use `debugger` statements in the js code.
+ * If the interactions are still too fast to understand why the test is failing, use `OPENPROJECT_TESTING_SLOWDOWN_FACTOR`, providing the number of seconds to slow down every browser command with. For example, if you'd like to slow down every interaction by 200 milliseconds, run with `OPENPROJECT_TESTING_SLOWDOWN_FACTOR=0.2`.
* Migration executed locally
* While developing on another branch, you may run migrations and forget to roll them back when switching branches. This can lead to different test results: a migration modifying a database column default value can impact system behavior and change test results.
* To find if this is your case, run `rails db:migrate:status` to list migration status. Look for `up <migration-id> ********** NO FILE **********` patterns. If you have some, try looking up the commit associated with this migration and check if it explains behavior difference.