How to get the text input field value to a 'const' variable in Cypress, so that I can log that variable using cy.log(). The below code doesn't log anything, can someone familiar with Cypress.io please advise
cy.get('input[name="email"]').then(($text)=>{
const txt = $text.text()
cy.log(txt)
})