2020-12-02 14:12:43 +01:00
|
|
|
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')
|
2022-05-05 17:14:39 +02:00
|
|
|
cy.get('[data-attr=caption]').should('contain', 'Not required for experimentation mode')
|
2020-12-02 14:12:43 +01:00
|
|
|
cy.wait(200)
|
2022-05-05 17:14:39 +02:00
|
|
|
cy.get('[data-attr=preflight-complete]').should('be.visible')
|
2020-12-02 14:12:43 +01:00
|
|
|
cy.get('[data-attr=preflight-complete]').click()
|
2021-03-25 15:40:20 +01:00
|
|
|
cy.url().should('include', '/signup')
|
2020-12-02 14:12:43 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
it('Preflight live mode', () => {
|
|
|
|
cy.get('[data-attr=preflight-live]').click()
|
2021-03-23 23:40:37 +01:00
|
|
|
cy.get('[data-attr=preflight-refresh]').click()
|
2022-05-05 17:14:39 +02:00
|
|
|
cy.get('[data-attr=caption]').should('contain', 'Set up before ingesting real user data')
|
2020-12-02 14:12:43 +01:00
|
|
|
cy.wait(200)
|
2022-05-05 17:14:39 +02:00
|
|
|
cy.get('[data-attr=preflight-complete]').should('be.visible')
|
2020-12-02 14:12:43 +01:00
|
|
|
})
|
|
|
|
})
|