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

Can I test props value of UI(Component)? #1527

Closed
ghost opened this issue Jul 12, 2019 · 3 comments
Closed

Can I test props value of UI(Component)? #1527

ghost opened this issue Jul 12, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 12, 2019

some thing like toHaveProps(propName, propValue);

e.g.
test WebView source props.

@support
Copy link

support bot commented Jul 12, 2019

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the detox tag.

Feel free to post your Stack Overflow question here for more visility. We'll take a look at it.

For more information on bots in this reporsitory, read this discussion.

@support support bot closed this as completed Jul 12, 2019
@LeoNatan
Copy link
Contributor

LeoNatan commented Jul 14, 2019

This is not currently possible with Detox and not planned for the time being.

@LeoNatan
Copy link
Contributor

The whole concept of "props" makes no sense in Detox world, because "props" are a JS thing, while Detox runs in native. Creating a mapping of props<->native attributes is not something we are willing to do at this point.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant