0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
posthog/cypress/e2e/annotations.cy.ts
2023-12-27 09:52:28 +01:00

20 lines
802 B
TypeScript

describe('Annotations', () => {
beforeEach(() => {
cy.clickNavMenu('datamanagement')
cy.get('[data-attr=data-management-annotations-tab]').click()
})
it('Annotations loaded', () => {
cy.contains('Create your first annotation').should('exist')
cy.get('[data-attr="product-introduction-docs-link"]').should('contain', 'Learn more')
})
it('Create annotation', () => {
cy.get('.TopBar3000 [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')
cy.contains('Create your first annotation').should('not.exist')
})
})