mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 18:26:15 +01:00
ef2b6acda0
* simplify cypress nav menu clicks * clean unused annotations code * don't blank all cohorts when deleting one * add data-test-filters-loading to better target loading indicators in tests
17 lines
536 B
JavaScript
17 lines
536 B
JavaScript
describe('Annotations', () => {
|
|
beforeEach(() => {
|
|
cy.clickNavMenu('annotations')
|
|
})
|
|
|
|
it('Annotations loaded', () => {
|
|
cy.get('h1').should('contain', 'Annotations')
|
|
})
|
|
|
|
it('Create annotation', () => {
|
|
cy.get('[data-attr=create-annotation]').click()
|
|
cy.get('[data-attr=create-annotation-input]').type('Test Annotation')
|
|
cy.get('[data-attr=create-annotation-submit]').click()
|
|
cy.get('[data-attr=annotations-table]').contains('Test Annotation').should('exist')
|
|
})
|
|
})
|