File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed
java/test/org/openqa/selenium/grid/data Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments