I have a small vue-app with a formular with 12 unput fields. My initial state looks smth like:
form = {
first_name: "",
last_name: "",
... }
I have to test the submit process manually, which sucks, because I have to fill in all 12 fields. Is there a way to write a script which is just pasted in the console and fills in all the fields?
I tried document.querySelector('input[name="first_name"]').value = "First Name"
and so on.
It can be seen in the browser that the fields are filled in, but the state doesn't change (can be seen in vue devtools). If I click the Submit-Button the required
-Validation kicks in, saying the fields have to be filled in.
So I figured out, that I need to somehow input the actual values, like for example puppeteer does. Any idea how it can be achieved?