Skip to content

Commit

Permalink
[grid] Add test for DefaultSlotMatcher
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Jan 21, 2025
1 parent a41a4c2 commit 10119a9
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,31 @@ void fullMatch() {
assertThat(slotMatcher.matches(stereotype, capabilities)).isTrue();
}

@Test
void fullMatchExtensionCaps() {
Capabilities stereotype =
new ImmutableCapabilities(
CapabilityType.BROWSER_NAME,
"firefox",
CapabilityType.PLATFORM_NAME,
Platform.WINDOWS,
"se:downloadsEnabled",
true,
"moz:debuggerAddress",
"127.0.0.1:34959");
Capabilities capabilities =
new ImmutableCapabilities(
CapabilityType.BROWSER_NAME,
"firefox",
CapabilityType.PLATFORM_NAME,
Platform.WINDOWS,
"se:downloadsEnabled",
true,
"moz:debuggerAddress",
true);
assertThat(slotMatcher.matches(stereotype, capabilities)).isTrue();
}

@Test
void fullMatchWithTestMetadata() {
Capabilities stereotype =
Expand Down

0 comments on commit 10119a9

Please sign in to comment.