Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Slight expansion on a topic to provoke thought in the reader.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelketek committed Jan 24, 2015
1 parent 710512e commit 31da9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guidelines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Each test can then access the section title and assert that it matches what the
Never use ``time.sleep()``
--------------------------

Sometimes, tests fail because when they check the page too soon. Often, tests must wait for JavaScript on the page to finish manipulating the DOM. In these cases, it is tempting to insert an explicit wait using ``time.sleep()``. For example:
Sometimes, tests fail because when they check the page too soon. Often, tests must wait for JavaScript on the page to finish manipulating the DOM, such as when adding elements or even attaching event listeners. In these cases, it is tempting to insert an explicit wait using ``time.sleep()``. For example:

.. code-block:: python
Expand Down

0 comments on commit 31da9d8

Please sign in to comment.