CI: WebDriver test on try (#37498)

Add webdriver test on the workflow with `--product servodriver`. This
will make tracking progression/regression in webdriver development
easier.

However, since webdriver test is still unstable, the webdriver test is
only enabled on try.

To run try: `./mach try wd`, `./mach try webdriver`

Testing: This PR add webdriver test on try

Signed-off-by: PotatoCP <kenzieradityatirtarahardja18@gmail.com>
Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
Kenzie Raditya Tirtarahardja 2025-07-02 13:43:55 +08:00 committed by GitHub
parent b8ac9d3472
commit d5b6160119
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -109,6 +109,22 @@ def handle_preset(s: str) -> Optional[JobConfig]:
profile="production", # WebGPU works to slow with debug assert
unit_tests=False,
) # production profile does not work with unit-tests
elif any(word in s for word in ["webdriver", "wd"]):
return JobConfig(
"WebDriver",
Workflow.LINUX,
wpt=True,
wpt_args=" ".join(
[
"./tests/wpt/tests/webdriver/tests/classic/",
"--pref=dom_testing_html_input_element_select_files_enabled",
"--product servodriver",
"--headless",
]
),
unit_tests=False,
number_of_wpt_chunks=1,
)
elif any(word in s for word in ["lint", "tidy"]):
return JobConfig("Lint", Workflow.LINT)
else: