Skip to content

Commit bbbfaff

Browse files
committed
[rb] apply review feedback: BiDi contexts, DRY browsers, uninstall example, zip_file alias
1 parent 3b7ab15 commit bbbfaff

12 files changed

Lines changed: 290 additions & 275 deletions

File tree

rb/lib/selenium/webdriver/common/zipper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ def zip_root(path)
6565
encode_zip(path, File.dirname(path))
6666
end
6767

68+
# Backwards-compatible name for the file-only behavior #zip_root now subsumes.
69+
alias zip_file zip_root
70+
6871
private
6972

7073
def encode_zip(path, base)

rb/sig/lib/selenium/webdriver/common/zipper.rbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ module Selenium
2929

3030
def self.zip_root: (untyped path) -> untyped
3131

32+
alias self.zip_file self.zip_root
33+
3234
private
3335

3436
def self.encode_zip: (untyped path, untyped base) -> untyped

rb/spec/integration/selenium/webdriver/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ _BIDI_IMPLEMENTATIONS = [
4646
"navigation_spec.rb",
4747
]
4848

49-
# bidi implementations that must also run over a Grid (e.g. se/file upload of an unpacked extension)
49+
# bidi implementations that must also run over a Grid
5050
_GRID_BIDI = [
5151
"driver_spec.rb",
5252
]
Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
load("//rb/spec:tests.bzl", "rb_integration_test")
22

3+
_BROWSERS = [
4+
"chrome",
5+
"chrome-beta",
6+
]
7+
38
filegroup(
49
name = "all_srcs",
510
testonly = True,
@@ -11,10 +16,7 @@ filegroup(
1116
rb_integration_test(
1217
name = file[:-8],
1318
srcs = [file],
14-
browsers = [
15-
"chrome",
16-
"chrome-beta",
17-
],
19+
browsers = _BROWSERS,
1820
data = ["//common/extensions"],
1921
)
2022
for file in glob(
@@ -30,19 +32,13 @@ rb_integration_test(
3032
name = "driver",
3133
srcs = ["driver_spec.rb"],
3234
bidi = True,
33-
browsers = [
34-
"chrome",
35-
"chrome-beta",
36-
],
35+
browsers = _BROWSERS,
3736
data = ["//common/extensions"],
3837
)
3938

4039
rb_integration_test(
4140
name = "service",
4241
srcs = ["service_spec.rb"],
43-
browsers = [
44-
"chrome",
45-
"chrome-beta",
46-
],
42+
browsers = _BROWSERS,
4743
grid = False,
4844
)

0 commit comments

Comments
 (0)