Fixed the added e2e-test with respect to the added link
authorKai Moritz <kai@juplo.de>
Mon, 11 May 2020 16:23:08 +0000 (18:23 +0200)
committerKai Moritz <kai@juplo.de>
Mon, 11 May 2020 16:23:08 +0000 (18:23 +0200)
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');
   });
 })