0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/cypress/e2e/projectHomepage.cy.ts

13 lines
493 B
TypeScript
Raw Normal View History

describe('Project Homepage', () => {
beforeEach(() => {
cy.intercept('GET', /\/api\/projects\/\d+\/dashboards\/\d+\//).as('getDashboard')
cy.clickNavMenu('projecthomepage')
})
it('Shows home dashboard on load', () => {
cy.wait('@getDashboard').its('response.statusCode').should('eq', 200)
cy.get(`@getDashboard.all`).should('have.length', 1) // Only loads once
cy.get('[data-attr=insight-card]').its('length').should('be.gte', 1)
})
})