Detox icon indicating copy to clipboard operation
Detox copied to clipboard

Assert device clipboard

Open d4vidi opened this issue 2 years ago • 3 comments

Describe your idea

Suppose an app has - in one of its screens, a button that reads Copy to clipboard. It could make a lot of sense to validate that the button indeed copies text to the device's clipboard.

We can introduce API's into Detox that would assert the clipboard's content (provided that it's text-based).


See also: #222, #658 Refs: https://carmelosantana.com/accessing-android-clipboard-via-adb-4350/

d4vidi avatar Oct 22 '23 13:10 d4vidi

Hello! We appreciate you bringing this issue to our attention. It looks like this could be a valuable addition or fix to our project. We believe that this feature would benefit greatly from contributions from the community, even from first-time contributors.

If you're interested in contributing to this feature, please take a look at our contribution guide. It has all the information you need to know about how to submit a pull request and contribute to our project.

You're also welcome to join our Discord server and discuss this feature with the collaborators or other contributors under the channel 'contributions'.

Please feel free to reach out to us if you have any questions, or need help with anything. We appreciate your feedback and look forward to working with you!

github-actions[bot] avatar Oct 22 '23 13:10 github-actions[bot]

Is this anyhow related to Pasteboard on iOS?

https://github.com/wix/Detox/pull/658

noomorph avatar Oct 22 '23 15:10 noomorph

Is this anyhow related to Pasteboard on iOS?

#658

Nice catch. Might be, though it looks different. @asafkorem wdyt?

d4vidi avatar Oct 22 '23 19:10 d4vidi