|
1 | 1 | import {Organization} from '../../../src/types' |
2 | 2 |
|
3 | | -describe.skip('writing queries and making graphs using Data Explorer', () => { |
| 3 | +describe('writing queries and making graphs using Data Explorer', () => { |
4 | 4 | let route: string |
5 | 5 |
|
6 | 6 | beforeEach(() => { |
7 | | - cy.flush() |
8 | | - cy.signin() |
9 | | - // Double check that the new schemaComposition flag does not interfere. |
10 | | - cy.setFeatureFlags({ |
11 | | - schemaComposition: true, |
12 | | - }) |
13 | | - // cy.wait($time) is necessary to consistently ensure sufficient time for the feature flag override. |
14 | | - // The flag reset happens via redux, (it's not a network request), so we can't cy.wait($intercepted_route). |
15 | | - cy.wait(1200) |
16 | | - cy.get('@org').then(({id}: Organization) => { |
17 | | - cy.createMapVariable(id) |
18 | | - cy.fixture('routes').then(({orgs, explorer}) => { |
19 | | - route = `${orgs}/${id}${explorer}` |
20 | | - cy.visit(route) |
21 | | - cy.getByTestID('tree-nav').should('be.visible') |
22 | | - }) |
23 | | - }) |
| 7 | + cy.flush().then(() => |
| 8 | + cy.signin().then(() => |
| 9 | + cy |
| 10 | + .setFeatureFlags({ |
| 11 | + showOldDataExplorerInNewIOx: true, |
| 12 | + showTasksInNewIOx: true, |
| 13 | + showVariablesInNewIOx: true, |
| 14 | + schemaComposition: true, // Double check that the new schemaComposition flag does not interfere. |
| 15 | + }) |
| 16 | + .then(() => { |
| 17 | + // cy.wait($time) is necessary to consistently ensure sufficient time for the feature flag override. |
| 18 | + // The flag reset happens via redux, (it's not a network request), so we can't cy.wait($intercepted_route). |
| 19 | + cy.wait(1200) |
| 20 | + cy.get('@org').then(({id}: Organization) => { |
| 21 | + cy.createMapVariable(id) |
| 22 | + cy.fixture('routes').then(({orgs, explorer}) => { |
| 23 | + route = `${orgs}/${id}${explorer}` |
| 24 | + cy.visit(route) |
| 25 | + cy.getByTestID('tree-nav').should('be.visible') |
| 26 | + }) |
| 27 | + }) |
| 28 | + }) |
| 29 | + ) |
| 30 | + ) |
24 | 31 | }) |
25 | 32 |
|
26 | 33 | describe('numeric input in graphs', () => { |
@@ -169,13 +176,6 @@ describe.skip('writing queries and making graphs using Data Explorer', () => { |
169 | 176 | }) |
170 | 177 |
|
171 | 178 | it('shows the empty state when the query returns no results', () => { |
172 | | - cy.isIoxOrg().then(isIox => { |
173 | | - // iox uses `${orgId}_${bucketId}` for a namespace_id |
174 | | - // And gives a namespace_id failure if no data is written yet. |
175 | | - // https://github.com/influxdata/monitor-ci/issues/402#issuecomment-1362368473 |
176 | | - cy.skipOn(isIox) |
177 | | - }) |
178 | | - |
179 | 179 | cy.getByTestID('time-machine--bottom').within(() => { |
180 | 180 | cy.getByTestID('flux-editor').should('be.visible') |
181 | 181 | .monacoType(`from(bucket: "defbuck") |
|
0 commit comments