Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler committed Jun 10, 2024
1 parent e6fd06b commit ba7c7a2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ class SlowlyTypeTest:
def test_simple_type(self):
"""should provide a away to change field value using type method"""
self.browser.visit(EXAMPLE_APP)
self.browser.find_by_name("query").type("with type method")
value = self.browser.find_by_name("query").value
assert "default value with type method" == value
elem = self.browser.find_by_name("query")
elem.type(" with type method")
assert "default value with type method" == elem.value

self.browser.find_by_name("description").type("type into textarea")
value = self.browser.find_by_name("description").value
assert "type into textarea" == value

def test_simple_type_on_element(self):
self.browser.visit(EXAMPLE_APP)
self.browser.find_by_name("query").type(" with type method")
value = self.browser.find_by_name("query").value
assert "default value with type method" == value
elem = self.browser.find_by_name("query")
elem.type(" with type method")
assert "default value with type method" == elem.value

self.browser.find_by_name("description").type("type into textarea")
value = self.browser.find_by_name("description").value
Expand Down

0 comments on commit ba7c7a2

Please sign in to comment.