0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 18:26:15 +01:00
posthog/cypress/integration/events.js
2020-11-30 17:36:24 -06:00

24 lines
801 B
JavaScript

describe('Events', () => {
beforeEach(() => {
cy.visit('/events')
})
it('Events loaded', () => {
cy.get('[data-attr=events-table]').should('exist')
})
it('Click on an event', () => {
cy.get('[data-attr=events-table] .event-row:first-child td:first-child').click()
cy.get('[data-attr=event-details]').should('exist')
})
it('Apply 1 overall filter', () => {
cy.get('[data-attr=new-prop-filter-EventsTable]').click()
cy.get('[data-attr=property-filter-dropdown]').click()
cy.get('[data-attr=prop-filter-event-0]').click({ force: true })
cy.get('[data-attr=prop-val]').click()
cy.get('[data-attr=prop-val-0]').click({ force: true })
cy.get('[data-attr=events-table]').should('exist')
})
})