Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0424980

Browse files
VietND96sandeepsuryaprasad
authored andcommittedMar 23, 2025
[grid] Add test for DefaultSlotMatcher
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 5843336 commit 0424980

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
 

‎java/test/org/openqa/selenium/grid/data/DefaultSlotMatcherTest.java

+25
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,31 @@ void fullMatch() {
6767
assertThat(slotMatcher.matches(stereotype, capabilities)).isTrue();
6868
}
6969

70+
@Test
71+
void fullMatchExtensionCaps() {
72+
Capabilities stereotype =
73+
new ImmutableCapabilities(
74+
CapabilityType.BROWSER_NAME,
75+
"firefox",
76+
CapabilityType.PLATFORM_NAME,
77+
Platform.WINDOWS,
78+
"se:downloadsEnabled",
79+
true,
80+
"moz:debuggerAddress",
81+
"127.0.0.1:34959");
82+
Capabilities capabilities =
83+
new ImmutableCapabilities(
84+
CapabilityType.BROWSER_NAME,
85+
"firefox",
86+
CapabilityType.PLATFORM_NAME,
87+
Platform.WINDOWS,
88+
"se:downloadsEnabled",
89+
true,
90+
"moz:debuggerAddress",
91+
true);
92+
assertThat(slotMatcher.matches(stereotype, capabilities)).isTrue();
93+
}
94+
7095
@Test
7196
void fullMatchWithTestMetadata() {
7297
Capabilities stereotype =

0 commit comments

Comments
 (0)
Please sign in to comment.