mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
64afebd643
* pull description into its own reuseable component * working object tags for insights * refactor editing toast and add insight description editing * insight name editing and split up huge insights component * fix toast bug * typing * test fixes and clean up * test something * add cypress tests * bug fixes * test with user logic dashboard collab instead * history is now a link button * hide under saved insights feature flag * skip tests for now * prettier Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
describe('Insights Premium Features', () => {
|
|
beforeEach(() => {
|
|
cy.clickNavMenu('insights')
|
|
cy.location('pathname').should('include', '/insights')
|
|
})
|
|
|
|
xit('Tag insight', () => {
|
|
const newTag = `test-${Math.floor(Math.random() * 10000)}`
|
|
cy.get('[data-attr=button-add-tag]').click()
|
|
cy.focused().type(newTag)
|
|
cy.get('[data-attr=new-tag-option]').click()
|
|
cy.get('.ant-tag').should('contain', newTag)
|
|
|
|
cy.wait(300)
|
|
cy.get('.new-tag-input').should('not.exist') // Input should disappear
|
|
})
|
|
|
|
xit('Cannot add duplicate tags', () => {
|
|
const newTag = `test2-${Math.floor(Math.random() * 10000)}`
|
|
cy.get('[data-attr=button-add-tag]').click()
|
|
cy.focused().type(newTag)
|
|
cy.get('[data-attr=new-tag-option]').click()
|
|
cy.get('.ant-tag').should('contain', newTag)
|
|
|
|
cy.wait(300)
|
|
cy.get('[data-attr=button-add-tag]').click()
|
|
cy.focused().type(newTag)
|
|
cy.get('[data-attr=new-tag-option]').click()
|
|
cy.get('.Toastify__toast--error').should('be.visible')
|
|
})
|
|
})
|