Skip to content

testkit new useScrollabe driver, new Carousel driver for testings #2713

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

Merged
merged 4 commits into from
Nov 7, 2023

Conversation

adids1221
Copy link
Contributor

@adids1221 adids1221 commented Aug 15, 2023

Description

useScrollable - a new driver to the testKit to support testing lists and lists-based components.

Changelog

useScrollable - a new driver to the testKit to support testing lists and lists-based components.

Additional info

@M-i-k-e-l
Copy link
Collaborator

A new useScrollable driver was added to the testKit to support testing lists and lists-based components.

Perhaps:
useScrollable - adding a new driver to the testKit to support testing lists and lists-based components.
Or
Adding useScrollable - a new driver to the testKit to support testing lists and lists-based components.

@adids1221 adids1221 requested a review from M-i-k-e-l August 29, 2023 09:16

await driver.scroll(Constants.screenWidth); //NOTE: first scroll doesn't fire onScroll
await driver.scroll({contentOffset: {x: Constants.screenWidth}}); //NOTE: first scroll doesn't fire onScroll
Copy link
Collaborator

Choose a reason for hiding this comment

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

I just realized that you are receiving props in this method which the usage is more complex than it should be.
This will be much easier:

      await driver.scroll({x: Constants.screenWidth}, lessCommonOptionObject); // don't change the name for the second param :)

@adids1221 adids1221 requested a review from M-i-k-e-l September 4, 2023 07:50
@M-i-k-e-l M-i-k-e-l merged commit 59d2092 into master Nov 7, 2023
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.

2 participants