Segue a minha resolucao.
No Command
Cypress.Commands.add("registraCadastro", (email, fullName, userName, password) => {
cy.contains("a", "Register now").click();
cy.contains("button", "Register").click();
cy.get("input[formcontrolname='email']").type(email);
cy.get("input[formcontrolname='fullName']").type(fullName);
cy.get("input[formcontrolname='userName']").type(userName);
cy.get("input[formcontrolname='password']").type(password);
cy.contains("button", "Register").click();
cy.url("https://alura-fotos.herokuapp.com/#/home");
})
No describe
describe("alura cadastro", () => {
beforeEach(() => {
cy.visit("https://alura-fotos.herokuapp.com");
})
it.only("registrar cadastro", () => {
cy.registraCadastro("felipe@gmail.com", "Felipe Rocha", "felipe", "12345678");
})