|
|
@ -91,14 +91,22 @@ def test_basic_browserstep(client, live_server):
|
|
|
|
'browser_steps-0-operation': 'Goto site',
|
|
|
|
'browser_steps-0-operation': 'Goto site',
|
|
|
|
'browser_steps-1-operation': 'Click element',
|
|
|
|
'browser_steps-1-operation': 'Click element',
|
|
|
|
'browser_steps-1-selector': 'button[name=test-button]',
|
|
|
|
'browser_steps-1-selector': 'button[name=test-button]',
|
|
|
|
'browser_steps-1-value': ''
|
|
|
|
'browser_steps-1-optional_value': ''
|
|
|
|
},
|
|
|
|
},
|
|
|
|
follow_redirects=True
|
|
|
|
follow_redirects=True
|
|
|
|
)
|
|
|
|
)
|
|
|
|
assert b"unpaused" in res.data
|
|
|
|
assert b"unpaused" in res.data
|
|
|
|
wait_for_all_checks(client)
|
|
|
|
wait_for_all_checks(client)
|
|
|
|
|
|
|
|
|
|
|
|
uuid = extract_UUID_from_client(client)
|
|
|
|
uuid = extract_UUID_from_client(client)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check HTML conversion detected and workd
|
|
|
|
|
|
|
|
res = client.get(
|
|
|
|
|
|
|
|
url_for("preview_page", uuid=uuid),
|
|
|
|
|
|
|
|
follow_redirects=True
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
assert b"This text should be removed" not in res.data
|
|
|
|
|
|
|
|
assert b"I smell JavaScript because the button was pressed" in res.data
|
|
|
|
|
|
|
|
|
|
|
|
# now test for 404 errors
|
|
|
|
# now test for 404 errors
|
|
|
|
res = client.post(
|
|
|
|
res = client.post(
|
|
|
@ -111,7 +119,7 @@ def test_basic_browserstep(client, live_server):
|
|
|
|
'browser_steps-0-operation': 'Goto site',
|
|
|
|
'browser_steps-0-operation': 'Goto site',
|
|
|
|
'browser_steps-1-operation': 'Click element',
|
|
|
|
'browser_steps-1-operation': 'Click element',
|
|
|
|
'browser_steps-1-selector': 'button[name=test-button]',
|
|
|
|
'browser_steps-1-selector': 'button[name=test-button]',
|
|
|
|
'browser_steps-1-value': ''
|
|
|
|
'browser_steps-1-optional_value': ''
|
|
|
|
},
|
|
|
|
},
|
|
|
|
follow_redirects=True
|
|
|
|
follow_redirects=True
|
|
|
|
)
|
|
|
|
)
|
|
|
|