Skip to content

Commit

Permalink
Write the second test
Browse files Browse the repository at this point in the history
test_check_many_items()
  • Loading branch information
ElSnoMan committed Mar 1, 2021
1 parent 1304dab commit 8ba654f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@ def test_check_first_item(py: Pylenium):
checkbox = py.getx("//*[text()='First Item']").parent().get('input')
checkbox.click()
assert checkbox.should().be_checked()


def test_check_many_items(py: Pylenium):
py.visit('https://lambdatest.github.io/sample-todo-app/')
todos = py.find("li[ng-repeat*='todo']")
todo2, todo4 = todos[1], todos[3]
todo2.get('input').click()
todo4.get('input').click()
assert py.contains('3 of 5 remaining')

0 comments on commit 8ba654f

Please sign in to comment.