A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/seleniumhq/selenium/commit/797a859d985f681699e66a7edb0939ee291bef1e below:

[java] Improving default matcher to enable Appium · SeleniumHQ/selenium@797a859 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+22

-3

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+22

-3

lines changed Original file line number Diff line number Diff line change

@@ -103,7 +103,7 @@ private Boolean initialMatch(Capabilities stereotype, Capabilities capabilities)

103 103

}

104 104

})

105 105

.reduce(Boolean::logicalAnd)

106 -

.orElse(false);

106 +

.orElse(true);

107 107

}

108 108 109 109

private Boolean platformVersionMatch(Capabilities stereotype, Capabilities capabilities) {

Original file line number Diff line number Diff line change

@@ -17,14 +17,14 @@

17 17 18 18

package org.openqa.selenium.grid.data;

19 19 20 -

import static org.assertj.core.api.Assertions.assertThat;

21 - 22 20

import org.junit.jupiter.api.Test;

23 21

import org.openqa.selenium.Capabilities;

24 22

import org.openqa.selenium.ImmutableCapabilities;

25 23

import org.openqa.selenium.Platform;

26 24

import org.openqa.selenium.remote.CapabilityType;

27 25 26 +

import static org.assertj.core.api.Assertions.assertThat;

27 + 28 28

public class DefaultSlotMatcherTest {

29 29 30 30

private final DefaultSlotMatcher slotMatcher = new DefaultSlotMatcher();

@@ -381,4 +381,23 @@ public void emptyCapabilitiesDoNotMatch() {

381 381

assertThat(slotMatcher.matches(stereotype, capabilities)).isFalse();

382 382

}

383 383 384 +

@Test

385 +

public void extensionCapsAlsoMatch() {

386 +

Capabilities stereotype = new ImmutableCapabilities(

387 +

CapabilityType.PLATFORM_NAME, Platform.IOS,

388 +

"appium:platformVersion", "15.5",

389 +

"appium:automationName", "XCUITest",

390 +

"appium:deviceName", "iPhone 13"

391 +

);

392 + 393 +

Capabilities capabilities = new ImmutableCapabilities(

394 +

CapabilityType.PLATFORM_NAME, Platform.IOS,

395 +

"appium:platformVersion", "15.5",

396 +

"appium:automationName", "XCUITest",

397 +

"appium:noReset", true,

398 +

"appium:deviceName", "iPhone 13"

399 +

);

400 + 401 +

assertThat(slotMatcher.matches(stereotype, capabilities)).isTrue();

402 +

}

384 403

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4