-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): Treat HogQL insights as fully rolled out (#21722)
* test(e2e): Treat HogQL insights as fully rolled out * Only intercept /query in `interceptInsightLoad()` * Remove long-broken `*Premium.cy.ts` tests * Update e2e.ts * Don't assume that untyped properties are boolean * Update test_property.py
- Loading branch information
Showing
8 changed files
with
26 additions
and
150 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,13 +29,9 @@ beforeEach(() => { | |
cy.intercept('**/decide/*', (req) => | ||
req.reply( | ||
decideResponse({ | ||
// set feature flags here e.g. | ||
// Feature flag to be treated as rolled out in E2E tests, e.g.: | ||
// 'toolbar-launch-side-action': true, | ||
'surveys-new-creation-flow': true, | ||
'auto-redirect': true, | ||
hogql: true, | ||
'data-exploration-insights': true, | ||
notebooks: true, | ||
'hogql-insights-preview': true, | ||
}) | ||
) | ||
) | ||
|
@@ -46,30 +42,20 @@ beforeEach(() => { | |
req.reply({ statusCode: 404, body: 'Cypress forced 404' }) | ||
) | ||
|
||
if (Cypress.spec.name.includes('Premium')) { | ||
cy.intercept('/api/users/@me/', { fixture: 'api/user-enterprise' }) | ||
cy.intercept('GET', /\/api\/projects\/\d+\/insights\/?\?/).as('getInsights') | ||
|
||
cy.request('POST', '/api/login/', { | ||
email: '[email protected]', | ||
password: '12345678', | ||
}) | ||
cy.request('POST', '/api/login/', { | ||
email: '[email protected]', | ||
password: '12345678', | ||
}) | ||
|
||
if (Cypress.spec.name.includes('before-onboarding')) { | ||
cy.visit('/?no-preloaded-app-context=true') | ||
} else { | ||
cy.intercept('GET', /\/api\/projects\/\d+\/insights\/?\?/).as('getInsights') | ||
|
||
cy.request('POST', '/api/login/', { | ||
email: '[email protected]', | ||
password: '12345678', | ||
cy.visit('/insights') | ||
cy.wait('@getInsights').then(() => { | ||
cy.get('.saved-insights tr').should('exist') | ||
}) | ||
|
||
if (Cypress.spec.name.includes('before-onboarding')) { | ||
cy.visit('/?no-preloaded-app-context=true') | ||
} else { | ||
cy.visit('/insights') | ||
cy.wait('@getInsights').then(() => { | ||
cy.get('.saved-insights tr').should('exist') | ||
}) | ||
} | ||
} | ||
}) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters