-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_splinter.py
More file actions
38 lines (32 loc) · 853 Bytes
/
test_splinter.py
File metadata and controls
38 lines (32 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import pytest
@pytest.mark.railflow(
case_type="Automated",
case_priority="High"
)
def test_google_two(browser):
"Testing visiting url"
url = "https://www.google.com"
browser.visit(url)
assert url in browser.url
@pytest.mark.railflow(
case_type="Automated",
case_priority="Low"
)
def test_forward(browser):
"testing forward and backward in browser"
splint_url = 'https://splinter.readthedocs.io'
browser.visit('https://www.google.com')
browser.visit(splint_url)
browser.back()
browser.forward()
assert splint_url in browser.url
@pytest.mark.railflow(
case_type="Automated",
case_priority="Low"
)
def test_reload(browser):
"test reload page"
url = "https://www.duckduckgo.com"
browser.visit(url)
browser.reload()
assert browser.url == 'https://www.google.com'