Fixed a possible timing problem in the tests.

master
Pacman Ghost 4 years ago
parent 3778e181b9
commit 1305fe8c94
  1. 2
      asl_articles/tests/utils.py

@ -514,7 +514,7 @@ def check_error_msg( expected ):
def check_constraint_warnings( expected_caption, expected_constraints, click_on ):
"""Check that a constraints warning dialog is being shown, and its contents."""
dlg = find_child( "#ask" )
dlg = wait_for_elem( 2, "#ask" )
assert find_child( ".caption", dlg ).text == expected_caption
constraints = [ c.text for c in find_children( ".constraint", dlg ) ]
assert set( constraints ) == set( expected_constraints )

Loading…
Cancel
Save