mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 04:12:23 +01:00
f717d9d126
* eslint * implement deeplinking on frontend * highlight matching events * remove console.logs * missed a print * standardize entity to session filter conversion * add matching events icon * styling expand column width * autoscroll, sessions table filtering, action options * add e2e tests and a few bug fixes * remove console.logs * lint rules and typescript fixes
22 lines
758 B
JavaScript
22 lines
758 B
JavaScript
describe('Sessions', () => {
|
|
beforeEach(() => {
|
|
cy.clickNavMenu('sessions')
|
|
})
|
|
|
|
it('Sessions Table loaded', () => {
|
|
cy.get('h1').should('contain', 'Sessions')
|
|
cy.get('[data-attr=sessions-table]').should('exist')
|
|
})
|
|
|
|
it('Sessions Table highlights matches', () => {
|
|
// Add pageview filter
|
|
cy.get('[data-attr=sessions-filter-open]').click()
|
|
cy.get('.ant-input').type('Pageview')
|
|
cy.get('.ant-list-item').contains('Pageview').click()
|
|
|
|
cy.get('[data-attr=sessions-apply-filters]').click()
|
|
cy.get('.ant-table-row-expand-icon-cell').first().click()
|
|
cy.get('[data-attr=sessions-table]').find('.sessions-event-highlighted').its('length').should('be.gt', 0)
|
|
})
|
|
})
|