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

Implement Espresso contrib mobile commands #324

Merged
merged 12 commits into from
Nov 28, 2018

Conversation

dpgraham
Copy link
Contributor

Mobile commands: setDate, setTime, navigateTo, scrollToPage, openDrawer, closeDrawer

(connect with: #323)

commands.mobileNavigateTo = async function (opts = {}) {
let {element, menuItemId} = assertRequiredOptions(opts, ['menuItemId', 'element']);

let menuItemIdAsNumber = parseInt(menuItemId, 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

, 10

Copy link
Contributor

@mykola-mokhnach mykola-mokhnach Nov 28, 2018

Choose a reason for hiding this comment

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

@dpgraham how about fixing the second argument of parseInt?

@dpgraham dpgraham force-pushed the dpgraham-espresso-mobile-commands branch from 778aa2f to 38ea8ba Compare November 28, 2018 21:48
@dpgraham
Copy link
Contributor Author

Fixes pushed. I'm using the validate.js library to validate scrollTo parameters now.

@mykola-mokhnach
Copy link
Contributor

LGTM, only one comment is left (parseInt arg)

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.

None yet

2 participants