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
2022-12-30 21:27:26 +01:00

17 lines
536 B
TypeScript

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')
})
})