From 9dd5d87bd26b5ccefbf8bb281b56798a285bcce5 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 11 May 2020 18:23:08 +0200 Subject: [PATCH] Fixed the added e2e-test with respect to the added link --- cypress/integration/heroes-spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/heroes-spec.ts b/cypress/integration/heroes-spec.ts index a5158c3..a335a3d 100644 --- a/cypress/integration/heroes-spec.ts +++ b/cypress/integration/heroes-spec.ts @@ -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'); }); }) -- 2.20.1