Gabriel Hurley 34e217b357 Added sanity checks and environment versioning to run_tests.sh.
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
2011-11-09 16:34:30 -08:00

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"))