mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
25a053cda4
* Finish the local dev w/ proto setup * WIP manage events view * Add task, add interface etc * Move everything to 'manage events' view * Move all settings into single dropdown (can be reverted) * Urls for tabs * Fix migration * Clickhouse and humanize volume * Fix cypress test * Fix sidebar cypress * Fix cypress again * Fix some small issues * Address comments * Corect naming * Fix test' Co-authored-by: James Greenhill <fuziontech@gmail.com>
31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
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')
|
|
})
|
|
|
|
it('Filter by event', () => {
|
|
cy.get('[data-attr=event-filter-trigger]').click()
|
|
cy.get('[data-attr=event-name-box]').click()
|
|
cy.get('[data-attr=prop-val-0]').click({ force: true })
|
|
cy.get('[data-attr=events-table]').should('exist')
|
|
})
|
|
})
|