mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-25 02:31:30 +01:00
ccbc9bcbea
* rename to ProductIntroduction * start using has_seen_product_intro_for * do up annotations * do up experiments * do activity log and ingestion warnings * do feature flags * apply to persons, but don't ever show the intro state it's unnecessary * migrations * Update UI snapshots for `chromium` (2) * Update query snapshots * Update query snapshots * Update query snapshots * update stories * Update UI snapshots for `chromium` (2) * fix tests * Update query snapshots * Update UI snapshots for `chromium` (2) * Update query snapshots * Update query snapshots * Update UI snapshots for `chromium` (2) * Update query snapshots * Update query snapshots * update surveys implementation * dont show intro to existing users on expts & cohorts * don't show on FFs for existing users * don't show intro on actions for existing users * do for annotations * clean up * add basic e2e test * cypress test for cohorts * Update UI snapshots for `chromium` (2) --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
20 lines
811 B
TypeScript
20 lines
811 B
TypeScript
describe('Annotations', () => {
|
|
beforeEach(() => {
|
|
cy.clickNavMenu('annotations')
|
|
})
|
|
|
|
it('Annotations loaded', () => {
|
|
cy.get('h1').should('contain', 'Annotations')
|
|
cy.get('h2').should('contain', 'Create your first annotation')
|
|
cy.get('[data-attr="product-introduction-docs-link"]').should('contain', 'Learn more about Annotations')
|
|
})
|
|
|
|
it('Create annotation', () => {
|
|
cy.get('.page-buttons [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.get('h2').should('not.have.text', 'Create your first annotation')
|
|
})
|
|
})
|