Fixed the added e2e-test with respect to the added link
[examples/angular-tour-of-heroes] / cypress / integration / heroes-spec.ts
index a5158c3..a335a3d 100644 (file)
@@ -1,7 +1,7 @@
 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');
   });
 })