-
-
Notifications
You must be signed in to change notification settings - Fork 88
[plugin-mobile-app] Add possibility to swipe the context #1939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -436,6 +436,9 @@ When I clear field located `accessibilityId(username)` | |||
|
|||
Swipes to an element in either UP, DOWN, LEFT, or RIGHT direction with the specified swipe duration | |||
|
|||
[INFO] | |||
Step takes into account current context. If you need to perform swipe on the element, swith the context to the element. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Step takes into account current context. If you need to perform swipe on the element, swith the context to the element. | |
The step takes into account current context. If you need to perform swipe on the element, you need to switch the context to this element. |
@@ -39,4 +41,7 @@ | |||
List<WebElement> getAssertingWebElements(); | |||
|
|||
boolean withAssertingWebElements(List<WebElement> elements, BooleanSupplier asserter); | |||
|
|||
<R, T extends SearchContext> R calculateWhen(Class<T> expectedClazz, Function<T, R> valueCalculator, | |||
Supplier<R> defaultValueProvider); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like not a part of UI context
@@ -70,6 +72,7 @@ | |||
void testGetCoordsNotIOS() | |||
{ | |||
mockScrollbarActions(); | |||
Mockito.doReturn(null).when(uiContext).getSearchContext(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's better to use static import for consistency
argThat(a -> { | ||
return expectedCoords.equals(a.get()); | ||
}))).thenReturn(expectedCoords); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useless change?
import org.openqa.selenium.Dimension; | ||
import org.openqa.selenium.Point; | ||
|
||
public class SwipeArea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
org.openqa.selenium.Rectangle
Codecov Report
@@ Coverage Diff @@
## master #1939 +/- ##
=========================================
Coverage 96.01% 96.01%
- Complexity 5294 5298 +4
=========================================
Files 751 751
Lines 15107 15117 +10
Branches 1029 1030 +1
=========================================
+ Hits 14505 14515 +10
Misses 469 469
Partials 133 133
Continue to review full report at Codecov.
|
ddb855a
to
3b1f692
Compare
3b1f692
to
137fef5
Compare
vividus-plugin-mobile-app/src/main/java/org/vividus/bdd/mobileapp/steps/TouchSteps.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also unit test coverage is below the threshold
137fef5
to
9b11330
Compare
Kudos, SonarCloud Quality Gate passed! |
Closes #1933