O que há de errado com meu teste?
describe('login e registro de usuarios alura pic',() => {
beforeEach(() => {
cy.visit('https://alura-fotos.herokuapp.com')
})
it('verifica mensagens de validacao', () => {
cy.contains('a', 'Register now').click();
cy.contains('button', 'Register').click();
cy.contains('ap-vmessage','Email is required!').should('be.visible');
cy.contains('button','Register').click();
cy.contains('ap-vmessage','Full name is required!').should('be.visible');
cy.contains('ap-vmessage','User name is required!').should('be.visible');
cy.contains('ap-vmessage','Password is required!').should('be.visible');
})
it('verifica mensagens de email invalido', () => {
cy.contains('a', 'Register now').click();
cy.contains('button', 'Register').click();
cy.get('input[formcontrolname="email"]').type('jacqueline');
cy.contains('ap-vmessage', 'Invalid e-mail').should('be.visible');
})
it('verifica mensagens de senha com menios de 8 caracteres', () => {
cy.contains('a','Register now').click();
cy.contains('button','Register').click();
cy.get('input[formcontrolname="password"]').type('123');
cy.contains('ap-vmessage', 'Mininum length is 8').should('be.visible');
})
})