Add another example that works offline
This commit is contained in:
parent
92bb3c0b1c
commit
a5c99fe8e3
|
@ -0,0 +1,12 @@
|
|||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.offline
|
||||
def test_request_fixture(request):
|
||||
sb = request.getfixturevalue('sb')
|
||||
sb.open("data:text/html,<p>Hello<br><input></p>")
|
||||
sb.assert_element("html > body")
|
||||
sb.assert_text("Hello", "body p")
|
||||
sb.type("input", "Goodbye")
|
||||
sb.click("body p")
|
||||
sb.tearDown()
|
Loading…
Reference in New Issue