mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-27 16:26:50 +01:00
20 lines
802 B
TypeScript
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')
|
|
})
|
|
})
|