зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1912239 - [puppeteer] Update mach puppeteer-test to use the new test scripts r=webdriver-reviewers,whimboo
Depends on D219558 Puppeteer headful was recently removed upstream Differential Revision: https://phabricator.services.mozilla.com/D219559
This commit is contained in:
Родитель
41cd6b2618
Коммит
0894c4e442
|
@ -455,23 +455,27 @@ class PuppeteerRunner(MozbuildObject):
|
|||
".cache",
|
||||
)
|
||||
|
||||
test_command = "test:" + product
|
||||
|
||||
if with_cdp:
|
||||
if headless:
|
||||
test_command = test_command + ":headless"
|
||||
if product == "chrome":
|
||||
if with_cdp:
|
||||
if headless:
|
||||
test_command = "test:chrome:headless"
|
||||
else:
|
||||
test_command = "test:chrome:headful"
|
||||
elif headless:
|
||||
test_command = "test:chrome:bidi"
|
||||
else:
|
||||
test_command = test_command + ":headful"
|
||||
raise Exception(
|
||||
"Chrome doesn't support headful mode with the WebDriver BiDi protocol"
|
||||
)
|
||||
elif product == "firefox":
|
||||
if with_cdp:
|
||||
test_command = "test:firefox:cdp"
|
||||
elif headless:
|
||||
test_command = "test:firefox:headless"
|
||||
else:
|
||||
test_command = "test:firefox:headful"
|
||||
else:
|
||||
if headless:
|
||||
test_command = test_command + ":bidi"
|
||||
else:
|
||||
if product == "chrome":
|
||||
raise Exception(
|
||||
"Chrome doesn't support headful mode with the WebDriver BiDi protocol"
|
||||
)
|
||||
|
||||
test_command = test_command + ":bidi:headful"
|
||||
test_command = "test:" + product
|
||||
|
||||
command = ["run", test_command, "--"] + mocha_options
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче