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('Button Component', () => { before( () => { cy.visit(Cypress.env('cardinal_base')); }) it('Buttons', () => { cy.get(sideNav.buttonLink).click(); cy.get(button.cyButton).eq(0).click(); cy.get(button.cyButton).eq(1).click(); cy.get(button.cyButton).eq(2).should('be.disabled'); cy.get(button.cyButton).eq(3).click(); cy.get(button.cyButton).eq(4).click(); cy.get(button.cyButton).eq(5).should('be.disabled'); cy.get(button.cyButton).eq(6).click(); cy.get(button.cyButton).eq(7).should('be.disabled'); cy.get(button.cyButton).eq(8).click(); cy.get(button.cyButton).eq(9).click(); cy.get(button.cyButton).eq(10).should('be.disabled'); cy.get(button.cyButton).eq(11).click(); cy.get(button.cyButton).eq(12).click(); cy.get(button.cyButton).eq(13).should('be.disabled'); cy.get(button.cyButton).eq(14).click(); cy.get(button.cyButton).eq(15).click(); cy.get(button.cyButton).eq(16).should('be.disabled'); cy.get(button.cyButton).eq(17).click(); cy.get(button.cyButton).eq(18).click(); cy.get(button.cyButton).eq(19).click(); cy.get(button.cyButton).eq(20).click(); cy.get(button.cyButton).eq(21).click(); cy.get(button.cyButton).eq(22).click(); cy.get(button.cyButton).eq(23).click(); cy.get(button.cyButton).eq(24).click(); cy.get(button.cyButton).eq(25).should('be.disabled'); cy.get(button.cyButton).eq(26).should('be.disabled'); cy.get(button.cyButton).eq(27).should('be.disabled'); cy.get(button.cyButton).eq(28).should('be.disabled'); cy.get(button.cyButton).eq(29).get('[href="https://www.google.com"]'); cy.get(button.cyButton).eq(30).get('[href="https://www.google.com"]'); cy.get(button.cyButton).eq(31).get('[href="https://www.google.com"]'); cy.get(button.cyButton).eq(32).get('[href="https://www.google.com"]'); cy.get(button.cyButton).eq(33).get('[href="https://www.google.com"]'); cy.get(button.cyButton).eq(34).get('[href="https://www.google.com"]'); cy.get(button.cyButton).eq(35).get('[href="https://www.google.com"]'); }) })