Skip to content

Commit

Permalink
Counters on expectations to enforce the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Diogo Baeder de Paula Pinto committed Oct 25, 2010
1 parent af3bad7 commit 818a169
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/actions/test_element_actions.py
Expand Up @@ -37,12 +37,16 @@ def test_element_click_action_calls_the_right_browser_driver_methods():
)

context.browser_driver.resolve_element_key(context, "button", "some")
mocker.count(min=1, max=1)
mocker.result("btnSome")
context.browser_driver.is_element_visible("btnSome")
mocker.count(min=1, max=1)
mocker.result(True)
context.browser_driver.click_element("btnSome")
mocker.count(min=1, max=1)

context.language.format("element_is_visible_failure", "button", "some")
mocker.count(min=1, max=1)
mocker.result("button")
context.language.get("button_category")
mocker.count(min=0, max=None)
Expand Down

0 comments on commit 818a169

Please sign in to comment.