Clipboard contents after action has been clicked
I want to tests a copy to clipboard action and im wondering if it is possible to grab the clipboard contents inside a test.
6 Replies
where is the action?
Form component (TextInput).
could you share the code?
After that is basically writes to the clipboard.
navigator.clipboard.writeText(text);
But im not sure if we can even access something like that in tests. π€Laravel
Testing | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
Mmm, what i wanted to test is if the state was matching the clipboard, so have to execute some JS i think π€
This will be a nice addition to it tho.