react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Support story play function

Open fabioatcorreia opened this issue 9 months ago • 4 comments

Is your feature request related to a problem? Please describe. Storybook serves as the main entry point of validation for a component.
Adding support for automated interactions increases the coverage of component's behaviours, while also serving as a catalogue to which interactions a component has available.

Describe the solution you'd like A similar behaviour to Storybook web.

Are you able to assist bring the feature to reality? I can try to

Additional context Play function docs

fabioatcorreia avatar May 26 '25 17:05 fabioatcorreia

the play function functionality isn't possible in exactly the same way since we can't make queries on the react tree like we could with the dom.

the alternative would be to build some kind of test automatically based on the play function contents, something with maestro or detox for example

dannyhw avatar May 26 '25 19:05 dannyhw

Maybe it could be easier to integrate with detox() because their modular design is more similar to react-testing-library.

algoORgoal avatar Jun 06 '25 18:06 algoORgoal

Yes I agree, the solution needs to have a js based api (like detox), this is something that maestro can't really do for example.

The problem is that detox isn't really that straight forward to setup and it makes things a bit awkward, for example to do a setup guide or automate a setup.

dannyhw avatar Jun 06 '25 18:06 dannyhw

B

sierra88-en avatar Jun 14 '25 00:06 sierra88-en