0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 00:47:50 +01:00

Fix feature flags insight link (#3865)

This commit is contained in:
Tim Glaser 2021-04-02 20:07:33 +02:00 committed by GitHub
parent 3b72a3acb3
commit e532223435
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,11 @@ describe('Feature Flags', () => {
cy.get('[data-attr=feature-flag-submit]').click()
cy.get('.Toastify__toast-body').click() // clicking the toast gets you back to the list
cy.get('[data-attr=feature-flag-table]').should('contain', 'beta-feature-updated')
cy.get('[data-attr=usage]').click()
cy.location().should((loc) => {
expect(loc.pathname.toString()).to.contain('/insight')
})
})
it('Delete feature flag', () => {

View File

@ -84,6 +84,7 @@ export function FeatureFlags(): JSX.Element {
BackTo
}
data-attr="usage"
onClick={(e) => e.stopPropagation()}
>
Insights <ExportOutlined />
</Link>