mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 17:54:41 +01:00
8b32db086a
Problem We're two major versions of Cypress behind. They claim the newer versions are faster Changes dependency updates a few fixed tests for new syntax
13 lines
493 B
TypeScript
13 lines
493 B
TypeScript
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)
|
|
})
|
|
})
|