0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 18:26:15 +01:00
posthog/cypress/integration/dashboard.js

16 lines
468 B
JavaScript
Raw Normal View History

describe('Dashboards', () => {
beforeEach(() => {
cy.get('[data-attr=menu-item-dashboards]').click()
cy.location('pathname', { timeout: 6000 }).should('include', '/dashboard')
})
it('Dashboards loaded', () => {
cy.get('h1').should('contain', 'Dashboards')
})
it('Click on a dashboard', () => {
cy.get('[data-attr=dashboard-name-0]').click()
cy.get('[data-attr=dashboard-item-0]').should('exist')
})
})