Skip to content

Commit

Permalink
[plugin-mobile-app] Remove deprecated steps performing tap and swipe …
Browse files Browse the repository at this point in the history
…actions (vividus-framework#4214)

Co-authored-by: draker94 <[email protected]>
  • Loading branch information
draker94 and web-flow authored Aug 10, 2023
1 parent ce0e919 commit e38fef7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 44 deletions.
20 changes: 1 addition & 19 deletions docs/modules/plugins/pages/plugin-mobile-app.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -578,12 +578,6 @@ The atomic actions performed are:
When I tap on element located by `$locator`
----

_Deprecated syntax (will be removed in VIVIDUS 0.6.0)_:
[source,gherkin]
----
When I tap on element located `$locator`
----

* `$locator` - <<_locator>>.

.Tap on element
Expand All @@ -608,12 +602,6 @@ The atomic actions performed are:
When I tap on element located by `$locator` with duration `$duration`
----

_Deprecated syntax (will be removed in VIVIDUS 0.6.0)_:
[source,gherkin]
----
When I tap on element located `$locator` with duration `$duration`
----

* `$locator` - <<_locator>>.
* `$duration` - The duration between an element is pressed and released in {durations-format-link} format.

Expand Down Expand Up @@ -845,12 +833,6 @@ the element, you need to switch the context to this element.
When I swipe $direction to element located by `$locator` with duration $swipeDuration
----

_Deprecated syntax (will be removed in VIVIDUS 0.6.0)_:
[source,gherkin]
----
When I swipe $direction to element located `$locator` with duration $swipeDuration
----

* `$direction` - The direction to swipe: `UP`, `DOWN`, `LEFT` or `RIGHT`.
* `$locator` - <<_locator>>.
* `$swipeDuration` - The swipe duration in {durations-format-link} format.
Expand All @@ -869,7 +851,7 @@ Then number of elements found by `accessibilityId(end-of-screen)` is equal to `1
Scenario: Switch slides
When I change context to element located by `accessibilityId(carousel)`
Then number of elements found by `accessibilityId(slide 2)` is equal to `0`
When I swipe LEFT to element located `accessibilityId(slide 2)` with duration PT1S
When I swipe LEFT to element located by `accessibilityId(slide 2)` with duration PT1S
Then number of elements found by `accessibilityId(slide 2)` is equal to `1`
----

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ Scenario: Verify step: 'When I reinstall mobile application with bundle identifi
Meta:
@requirementId 2073
When I tap on element located by `accessibilityId(menuToggler)`
!-- Deprecated, replace with "When I tap on element located by `$locator`" after removal
When I tap on element located `xpath(<menuInputXpath>)`
When I tap on element located by `xpath(<menuInputXpath>)`
When I reinstall mobile application with bundle identifier `${main-app}`
When I wait until element located by `xpath(<textElementXpath>)->filter.text(Home)` appears

Expand Down Expand Up @@ -90,10 +89,6 @@ Scenario: Verify step: 'When I tap on element located by `$locator` with duratio
Then number of elements found by `xpath(<menuButtonXpath>)` is equal to `0`
When I tap on element located by `accessibilityId(menuToggler)` with duration `PT0.5S`
Then number of elements found by `xpath(<menuButtonXpath>)` is equal to `1`
!-- Deprecated, remove the rest of scenario after "When I tap on element located `$locator` with duration `$duration`" removal
When I tap on element located `xpath(<menuInputXpath>)` with duration `PT0.5S`
Then number of elements found by `xpath(<menuButtonXpath>)` is equal to `0`
When I tap on element located by `accessibilityId(menuToggler)`


Scenario: Verify step: 'When I tap on element located by `$locator`' and Attribute Filter
Expand Down Expand Up @@ -212,8 +207,7 @@ When I tap on element located by `accessibilityId(menuToggler)`
When I tap on element located by `xpath(<menuScrollViewXpath>)`
Then number of elements found by `accessibilityId(header)` is equal to `1`
Then number of elements found by `accessibilityId(footer)` is equal to `0`
!-- Deprecated, replace with "When I swipe $direction to element located by `$locator` with duration $swipeDuration`" after removal
When I swipe UP to element located `accessibilityId(footer)` with duration PT1S
When I swipe UP to element located by `accessibilityId(footer)` with duration PT1S
Then number of elements found by `accessibilityId(header)` is equal to `0`
Then number of elements found by `accessibilityId(footer)` is equal to `1`
When I swipe DOWN to element located by `accessibilityId(header)` with duration PT1S
Expand Down Expand Up @@ -248,7 +242,7 @@ Meta:
When I tap on element located by `accessibilityId(menuToggler)`
When I tap on element located by `iosClassChain(**/XCUIElementTypeButton[$name == "Image"$])`
When I upload file `/data/mobile-upload-image.png` to device
When I tap on element located `iosNsPredicate(name == 'selectImage')`
When I tap on element located by `iosNsPredicate(name == 'selectImage')`
When I wait until element located by `accessibilityId(Photos)` appears
When I tap on element located by `xpath((//XCUIElementTypeImage[contains(@name, "Photo")])[1])`
Then number of elements found by `xpath(//XCUIElementTypeStaticText[@value='228x228'])` is equal to `1`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ Examples:


Scenario: Verify contextual check with ignored element
When I tap on element located `accessibilityId(menuToggler)`
When I tap on element located `xpath(<menuScrollViewXpath>)`
When I tap on element located by `accessibilityId(menuToggler)`
When I tap on element located by `xpath(<menuScrollViewXpath>)`
When I wait until element located by `xpath(<scrollViewXpath>)` appears
When I change context to element located by `xpath(<scrollViewXpath>)`
When I <action> baseline with name `${target-platform}-context-with-ignore` ignoring:
Expand Down

0 comments on commit e38fef7

Please sign in to comment.