Skip to content
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

Horizontal swipe with gesture Plugin #238

Merged
merged 33 commits into from
Jul 7, 2023

Conversation

Darshan3S
Copy link
Contributor

This PR covers implementation for Horizontal swipe action using gesture plugin in teswiz framework

  • Added method and implementation for the action using gesture plugin
  • Added Scenario in Jio cinema to swipe for elments and test
  • Added BL and methods required for the same

Darshan3S and others added 26 commits June 22, 2023 18:54
…_gesture

# Conflicts:
#	src/main/java/com/znsio/teswiz/runner/Driver.java
@Darshan3S Darshan3S changed the title Horizontal swipe with gesture Horizontal swipe with gesture Plugin Jul 6, 2023
@@ -40,4 +40,9 @@ public void iSwipeLeftOnTrendingInIndiaSection() {
public void iAmAbleToViewNumberTrendingCinema(int movieNumberOnScreen) {
new JioCinemaBL(SAMPLE_TEST_CONTEXT.ME, Runner.getPlatform()).verifyMovieNumberVisibleOnScreen(movieNumberOnScreen);
}

@When("I swipe {string} trending no {int} on trending in india section")
public void iSwipeRightTrendingNoOnTrendingInIndiaSection(String direction, int movieNumberOnScreen) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

method name has "right" in it, where as the direction is a parameter

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the method name


@When("I swipe {string} trending no {int} on trending in india section")
public void iSwipeRightTrendingNoOnTrendingInIndiaSection(String direction, int movieNumberOnScreen) {
new JioCinemaBL(SAMPLE_TEST_CONTEXT.ME, Runner.getPlatform()).swipeMovieTrendingInIndiaSection(direction,movieNumberOnScreen);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of passing the direction as a string, convert it to the Direction enum here itself, and pass that as a parameter - Direction.valueOf(direction.toUpperCase()
See this implementation in AutoScrollSteps.java - iShouldBeAbleToScrollInDynamicLayer

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated with Direction object in method parameters

@anandbagmar anandbagmar merged commit 96f7de8 into znsio:main Jul 7, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants