mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #30220 -- Added support for headless mode in selenium tests.
This commit is contained in:
parent
e286987a27
commit
8d010f3986
4 changed files with 27 additions and 1 deletions
|
@ -446,6 +446,10 @@ if __name__ == "__main__":
|
|||
'--selenium', action=ActionSelenium, metavar='BROWSERS',
|
||||
help='A comma-separated list of browsers to run the Selenium tests against.',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--headless', action='store_true',
|
||||
help='Run selenium tests in headless mode, if the browser supports the option.',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--selenium-hub',
|
||||
help='A URL for a selenium hub instance to use in combination with --selenium.',
|
||||
|
@ -506,6 +510,7 @@ if __name__ == "__main__":
|
|||
if options.selenium_hub:
|
||||
SeleniumTestCaseBase.selenium_hub = options.selenium_hub
|
||||
SeleniumTestCaseBase.external_host = options.external_host
|
||||
SeleniumTestCaseBase.headless = options.headless
|
||||
SeleniumTestCaseBase.browsers = options.selenium
|
||||
|
||||
if options.bisect:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue