
Implements blueprint environment-versioning. Fixed bug 887885. The script will bail if the seleniumrc or test scripts are missing, preventing the hang, or the possibility of bad environments. Change-Id: I3cdeb71660c897e8b2adbf81d3794333d1847204
14 lines
449 B
Python
14 lines
449 B
Python
from django import test
|
|
from noseselenium.cases import SeleniumTestCaseMixin
|
|
|
|
|
|
class SeleniumTests(test.TestCase, SeleniumTestCaseMixin):
|
|
def test_splash(self):
|
|
self.selenium.open("/")
|
|
self.failUnless(self.selenium.is_text_present("User Name"))
|
|
|
|
def test_qunit(self):
|
|
self.selenium.open("/qunit/")
|
|
self.selenium.wait_for_page_to_load("2000")
|
|
self.failUnless(self.selenium.is_text_present("0 failed"))
|