Skip to content

Commit d5aeb2e

Browse files
committed
Restore original test with inverted expectation
1 parent 6618cb8 commit d5aeb2e

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

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

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,37 @@ void multipleExtensionPrefixedCapabilitiesDoNotMatchWhenOneIsDifferent() {
426426
}
427427

428428
@Test
429-
void vendorExtensionPrefixedCapabilitiesAreIgnoredForMatching() {
429+
void vendorExtensionPrefixedCapabilitiesWithSimpleValuesAreConsideredForMatching() {
430+
Capabilities stereotype =
431+
new ImmutableCapabilities(
432+
CapabilityType.BROWSER_NAME,
433+
"chrome",
434+
CapabilityType.BROWSER_VERSION,
435+
"84",
436+
CapabilityType.PLATFORM_NAME,
437+
Platform.WINDOWS,
438+
"goog:cheese",
439+
"amsterdam",
440+
"ms:fruit",
441+
"mango");
442+
443+
Capabilities capabilities =
444+
new ImmutableCapabilities(
445+
CapabilityType.BROWSER_NAME,
446+
"chrome",
447+
CapabilityType.BROWSER_VERSION,
448+
"84",
449+
CapabilityType.PLATFORM_NAME,
450+
Platform.WINDOWS,
451+
"goog:cheese",
452+
"gouda",
453+
"ms:fruit",
454+
"orange");
455+
assertThat(slotMatcher.matches(stereotype, capabilities)).isFalse();
456+
}
457+
458+
@Test
459+
void vendorExtensionPrefixedCapabilitiesWithComplexValuesAreIgnoredForMatching() {
430460
Capabilities stereotype =
431461
new ImmutableCapabilities(
432462
CapabilityType.BROWSER_NAME,

0 commit comments

Comments
 (0)