I hope it doesn't seem like a pointless question and I'm sorry if I don't give all the details first, but I would like to know if I can call from another file enterUsername(userone), where userone would like to be an object with more many features
enterUsername(userone){
userone=(
cy.get('input[name="Parameter.UserName"]').type('userone'),
cy.get('input[name="Parameter.Password"]').type('useronepass')
)
return this;
}
From another file calling directly enterUsername(userone) and not enterUsername('userone')
Please note that I have asked something similar and I have been given solutions that I have applied, but only with a call between apostrophes.