mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 09:16:49 +01:00
a2ff10ab52
* Replace README contents with a single link to Never Gonna Give You Up
* Assert event name
* Add some clicks
* Remove a sessions Cy test because of insufficient demo data
* Reenable Apply table filter test
* Revert "Replace README contents with a single link to Never Gonna Give You Up"
This reverts commit 1b2fe76304
.
33 lines
914 B
JavaScript
33 lines
914 B
JavaScript
describe('Trends sessions', () => {
|
|
beforeEach(() => {
|
|
// given
|
|
cy.visit('/insights')
|
|
cy.get('[id="rc-tabs-0-tab-SESSIONS"]').click()
|
|
})
|
|
|
|
it('Sessions exists', () => {
|
|
// then
|
|
cy.get('[data-attr=trend-line-graph]').should('exist')
|
|
})
|
|
|
|
it('Apply table filter', () => {
|
|
cy.get('[data-attr=chart-filter]').click()
|
|
cy.contains('Table').click()
|
|
|
|
cy.get('[data-attr=trend-table-graph]').should('exist')
|
|
})
|
|
|
|
it('Apply date filter', () => {
|
|
cy.get('[data-attr=date-filter]').click()
|
|
cy.contains('Last 30 days').click()
|
|
|
|
cy.get('[data-attr=trend-line-graph]').should('exist')
|
|
})
|
|
|
|
it('Save to dashboard', () => {
|
|
cy.get('[data-attr=save-to-dashboard-button]').click()
|
|
cy.contains('Add panel to dashboard').click()
|
|
cy.get('[data-attr=success-toast]').should('exist')
|
|
})
|
|
})
|