0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-30 03:26:38 +01:00
posthog/cypress/integration/annotations.js
Eric Duong d7fe71f083
1247 annotations crud (#1258)
* working table

* add modal

* continue adding to modal

* added function to create global annotation

* format

* test commit

* add precommit

* add update function

* crud working

* add type

* fix tests

* add next

* add prompt

* tests
2020-07-22 12:25:54 +02:00

18 lines
577 B
JavaScript

describe('Annotations', () => {
beforeEach(() => {
cy.get('[data-attr=menu-item-settings]').click()
cy.get('[data-attr=menu-item-annotations]').click()
})
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.contains('Test Annotation').should('exist')
})
})