X-Git-Url: https://juplo.de/gitweb/?p=examples%2Fangular-tour-of-heroes;a=blobdiff_plain;f=cypress%2Fintegration%2Fheroes-spec.ts;h=a335a3da398b9921adfa52c1e70b9b4a17622abe;hp=a5158c300ecd418b39386ac57f4afc75134addba;hb=9dd5d87bd26b5ccefbf8bb281b56798a285bcce5;hpb=2f6f2d86ff7765914cd9105069181ed1f1792f44 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'); }); })