[py] Enable WebKitGTK and WPEWebKit tests in Bazel
WPE using the headless mode to allow being tested without requiring a
Wayland session.
@@ -303,3 +303,53 @@ py_test_suite(
"//third_party/py:pytest",
],
)
+
+py_test_suite(
+ name = "test-webkitgtk",
+ size = "large",
+ srcs = glob([
+ "test/selenium/webdriver/common/**/*.py",
+ "test/selenium/webdriver/support/**/*.py",
+ ]),
+ args = [
+ "--instafail",
+ "--driver=WebKitGTK",
+ "--browser-binary=MiniBrowser",
+ "--browser-args=--automation",
+ ],
+ tags = [
+ "exclusive",
+ "no-sandbox",
+ ],
+ deps = [
+ ":init-tree",
+ ":selenium",
+ ":webserver",
+ "//third_party/py:pytest",
+ ],
+)
+
+py_test_suite(
+ name = "test-wpewebkit",
+ size = "large",
+ srcs = glob([
+ "test/selenium/webdriver/common/**/*.py",
+ "test/selenium/webdriver/support/**/*.py",
+ ]),
+ args = [
+ "--instafail",
+ "--driver=WPEWebKit",
+ "--browser-binary=MiniBrowser",
+ "--browser-args=--automation --headless",
+ ],
+ tags = [
+ "exclusive",
+ "no-sandbox",
+ ],
+ deps = [
+ ":init-tree",
+ ":selenium",
+ ":webserver",
+ "//third_party/py:pytest",
+ ],
+)
