chore: fix test case

This commit is contained in:
salman2013
2023-10-06 15:10:44 +05:00
parent 5bc3dfa6fe
commit cda018e67b

View File

@@ -77,7 +77,7 @@ class Env:
PRINT_SETTINGS_LOG_FILE = GEN_LOG_DIR / "print_settings.log"
# Detect if in a Docker container, and if so which one
# USING_DOCKER = SERVER_HOST != '0.0.0.0'
USING_DOCKER = SERVER_HOST != '0.0.0.0'
DEVSTACK_SETTINGS = 'devstack'
TEST_SETTINGS = 'test'
@@ -85,6 +85,10 @@ class Env:
TEST_DIR = REPO_ROOT / ".testids"
# Configured browser to use for the js test suites
SELENIUM_BROWSER = os.environ.get('SELENIUM_BROWSER', 'firefox')
if USING_DOCKER:
KARMA_BROWSER = 'ChromeDocker' if SELENIUM_BROWSER == 'chrome' else 'FirefoxDocker'
else:
KARMA_BROWSER = 'FirefoxNoUpdates'
# Files used to run each of the js test suites