Here is a nifty trick: get from the document a form elements object and set multiple input values at once.
cy.document()
.its('forms.personal-info.elements')
.then(function (elements) {
elements['first-name'].value = 'Joe'
elements['last-name'].value = 'Smith'
elements.city.value = 'Boston'
})
For more, see the "Form recipes" at https://glebbahmutov.com/cypress-exam...
On this page of the site you can watch the video online Set Multiple Input Fields Inside A Form At Once with a duration of hours minute second in good quality, which was uploaded by the user gleb bahmutov 15 June 2022, share the link with friends and acquaintances, this video has already been watched 3,543 times on youtube and it was liked by 28 viewers. Enjoy your viewing!