describe('The Home Page', () => {
it('successfully loads', () => {
cy.visit('/');
- cy.get('app-root nav a').click();
- cy.url().should('include', '/heroes')
+ cy.get('app-root nav a[routerLink="/heroes"').click();
+ cy.url().should('include', '/heroes');
});
})