0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
posthog/cypress/integration/live_actions.js
James Greenhill 1b689054bf
Fix cypress inconsistent tests with longer wait and purecomponents (#1078)
* Test lengthening the wait time for the toasts to see if they are less flakey

* use purecomponent hook to prevent unnecessary rerender

* test again

* test again x2

* change pagekey

* test x2

* test

* run on chrome

* remove chrome

Co-authored-by: Eric <eeoneric@gmail.com>
2020-06-25 13:53:13 -04:00

20 lines
620 B
JavaScript

describe('Live Actions', () => {
beforeEach(() => {
cy.get('[data-attr=menu-item-events]').click()
cy.get('[data-attr=menu-item-live-actions]').click()
})
it('Live actions loaded', () => {
cy.get('[data-attr=events-table').should('exist')
})
it('Apply 1 overall filter', () => {
cy.get('[data-attr=new-prop-filter-LiveActionsTable]').click()
cy.get('[data-attr=prop-filter-person-0]').click()
cy.get('[data-attr=prop-val]').click()
cy.get('[data-attr=prop-val-0]').click()
cy.get('[data-attr=events-table').should('exist')
})
})