Is there a way to retrieve the value of an input[text] element within a custom command?
Cypress.Commands.add('extendValue', {
prevSubject: 'element'
}, (subject: JQuery<HTMLElement>, extension: string): any => {
const result = cy.wrap(subject);
const value = result.invoke('val');
console.log(value);
result.type(extension);
return result;
});