mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-24 17:24:43 +01:00
c28a39fa47
Segregation of Dev and Prod envs, addition of tests Co-authored-by: Markos Gogoulos <mgogoulos@gmail.com> Co-authored-by: Ubuntu <shubhank@my-hostings.nxfutj5b2tlubjykddwgszqteb.bx.internal.cloudapp.net>
14 lines
535 B
Python
14 lines
535 B
Python
from django.test import TestCase
|
|
from selenium import webdriver
|
|
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
|
|
|
|
|
|
class SeleniumTest(TestCase):
|
|
def setUp(self):
|
|
self.chrome = webdriver.Remote(command_executor='http://selenium_hub:4444/wd/hub', desired_capabilities=DesiredCapabilities.CHROME)
|
|
self.chrome.implicitly_wait(10)
|
|
|
|
def test_visit_site_with_chrome(self):
|
|
self.chrome.get('http://web/admin')
|
|
self.assertIn(self.chrome.title, "Log in | Django site admin")
|