mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-22 08:40:03 +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')
|
|
})
|
|
})
|