aboutsummaryrefslogtreecommitdiff
path: root/functional_tests.py
blob: 9eedef481392adc6726ca58854b07069cd8b58c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from selenium import webdriver


options = webdriver.ChromeOptions()
options.add_argument('--headless')
options.add_argument('--disable-gpu')
browser = webdriver.Chrome("/usr/local/bin/chromedriver", chrome_options=options)
browser.get('http://127.0.0.1:8000')
assert 'Django' in browser.title
browser.get('http://127.0.0.1:8000/admin/')
assert 'Django' in browser.title