0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/cypress/integration/preflight.js
2021-03-25 07:40:20 -07:00

25 lines
971 B
JavaScript

describe('Preflight', () => {
beforeEach(() => {
cy.visit('/logout')
cy.visit('/preflight')
})
it('Preflight experimentation', () => {
cy.get('[data-attr=preflight-experimentation]').click()
cy.get('[data-attr=preflight-refresh]').should('be.visible')
cy.get('[data-attr=caption]').should('contain', 'Not required for development or testing')
cy.wait(200)
cy.get('[data-attr=preflightStatus]').should('contain', 'All systems go!')
cy.get('[data-attr=preflight-complete]').click()
cy.url().should('include', '/signup')
})
it('Preflight live mode', () => {
cy.get('[data-attr=preflight-live]').click()
cy.get('[data-attr=preflight-refresh]').click()
cy.get('[data-attr=caption]').should('contain', 'Install before ingesting real user data')
cy.wait(200)
cy.get('[data-attr=preflightStatus]').should('contain', 'All systems go!')
})
})