created new dir for STATICFILES_DIRS in core.settings; all Jasmine test files transferred to new dir src/static_src/; new FT test_jasmine executes Jasmine test runner as part of CI pipeline & base FT has dobules MAX_WAIT to 10s; some cleanup of unused imports in text_simple_list_creation
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -9,7 +9,7 @@ from selenium.webdriver.common.keys import Keys
|
||||
|
||||
from .container_commands import reset_database
|
||||
|
||||
MAX_WAIT = 5
|
||||
MAX_WAIT = 10
|
||||
|
||||
|
||||
# Decorator fns
|
||||
|
||||
13
src/functional_tests/test_jasmine.py
Normal file
13
src/functional_tests/test_jasmine.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from selenium.webdriver.common.by import By
|
||||
from .base import FunctionalTest
|
||||
|
||||
|
||||
class JasmineTest(FunctionalTest):
|
||||
def test_jasmine_specs_pass(self):
|
||||
self.browser.get(self.live_server_url + "/static/tests/SpecRunner.html")
|
||||
|
||||
def check_results():
|
||||
result = self.browser.find_element(By.CSS_SELECTOR, ".jasmine-overall-result")
|
||||
self.assertIn("0 failures", result.text)
|
||||
|
||||
self.wait_for(check_results)
|
||||
@@ -3,8 +3,6 @@ from selenium.webdriver.common.keys import Keys
|
||||
|
||||
from .base import FunctionalTest
|
||||
|
||||
MAX_WAIT = 5
|
||||
|
||||
class NewVisitorTest(FunctionalTest):
|
||||
# Test methods
|
||||
def test_can_start_a_todo_list(self):
|
||||
|
||||
Reference in New Issue
Block a user