https://cypress.io logo
Can you give this a try <@930813940131332106> ? Tr...
# e2e-testing
e
Can you give this a try @rough-petabyte-49242 ? Try using
cy.wrap
https://docs.cypress.io/api/commands/wrap#Yields
Copy code
typeField(nameField, test) {
    this.editInformationBtn()
        .click();

    // Try cy.wrap
    nameField.then((field) => {
        cy.wrap(field).clear().type(test)
    })

    this.saveBtn()
        .click()
};
Then I imagine in your test you could call this method by doing
agentProfile.typeField(agentProfile.firstNameEdit(), "textHere")