From: Kai Moritz Date: Mon, 11 May 2020 16:23:08 +0000 (+0200) Subject: Fixed the added e2e-test with respect to the added link X-Git-Url: http://juplo.de/gitweb/?p=examples%2Fangular-tour-of-heroes;a=commitdiff_plain;h=9dd5d87bd26b5ccefbf8bb281b56798a285bcce5 Fixed the added e2e-test with respect to the added link --- 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'); }); })