import * as hero from '../../../../app/components/hero/src/hero.component.cy-page'; import * as button from '../../../../app/components/button/src/button.component.cy-page'; import * as sideNav from '../../../../app/components/sidenav-component/sidenav.component.cy-page'; describe('Hero Component', () => { before( () => { cy.visit(Cypress.env('cardinal_base')); }) it('Heros', () => { cy.get(sideNav.heroLink).click(); cy.get(hero.cyHero).eq(0).should('exist'); cy.get(hero.cyHero).eq(1).within(($div) => { cy.get(button.cyButton).click(); }); cy.get(hero.cyHero).eq(2).should('exist'); }) })