|
|
|
@ -85,6 +85,8 @@ describe('Datasource sandbox', () => { |
|
|
|
|
e2e.pages.Explore.visit(); |
|
|
|
|
e2e.components.DataSourcePicker.container().should('be.visible').click(); |
|
|
|
|
cy.contains(DATASOURCE_TYPED_NAME).scrollIntoView().should('be.visible').click(); |
|
|
|
|
// make sure the datasource was correctly selected and rendered
|
|
|
|
|
e2e.components.Breadcrumbs.breadcrumb(DATASOURCE_TYPED_NAME).should('be.visible'); |
|
|
|
|
|
|
|
|
|
cy.wait(300); // wait to prevent false positives because cypress checks too fast
|
|
|
|
|
cy.get(`div[data-plugin-sandbox="${DATASOURCE_ID}"]`).should('not.exist'); |
|
|
|
@ -95,6 +97,9 @@ describe('Datasource sandbox', () => { |
|
|
|
|
e2e.components.DataSourcePicker.container().should('be.visible').click(); |
|
|
|
|
cy.contains(DATASOURCE_TYPED_NAME).scrollIntoView().should('be.visible').click(); |
|
|
|
|
|
|
|
|
|
// make sure the datasource was correctly selected and rendered
|
|
|
|
|
e2e.components.Breadcrumbs.breadcrumb(DATASOURCE_TYPED_NAME).should('be.visible'); |
|
|
|
|
|
|
|
|
|
const valueToType = 'test' + random(100); |
|
|
|
|
|
|
|
|
|
cy.get('[data-testid="sandbox-query-editor-query-input"]').should('not.be.disabled'); |
|
|
|
@ -114,6 +119,8 @@ describe('Datasource sandbox', () => { |
|
|
|
|
e2e.pages.Explore.visit(); |
|
|
|
|
e2e.components.DataSourcePicker.container().should('be.visible').click(); |
|
|
|
|
cy.contains(DATASOURCE_TYPED_NAME).scrollIntoView().should('be.visible').click(); |
|
|
|
|
// make sure the datasource was correctly selected and rendered
|
|
|
|
|
e2e.components.Breadcrumbs.breadcrumb(DATASOURCE_TYPED_NAME).should('be.visible'); |
|
|
|
|
|
|
|
|
|
cy.get(`div[data-plugin-sandbox="${DATASOURCE_ID}"]`).should('exist'); |
|
|
|
|
}); |
|
|
|
@ -123,6 +130,9 @@ describe('Datasource sandbox', () => { |
|
|
|
|
e2e.components.DataSourcePicker.container().should('be.visible').click(); |
|
|
|
|
cy.contains(DATASOURCE_TYPED_NAME).scrollIntoView().should('be.visible').click(); |
|
|
|
|
|
|
|
|
|
// make sure the datasource was correctly selected and rendered
|
|
|
|
|
e2e.components.Breadcrumbs.breadcrumb(DATASOURCE_TYPED_NAME).should('be.visible'); |
|
|
|
|
|
|
|
|
|
const valueToType = 'test' + random(100); |
|
|
|
|
|
|
|
|
|
cy.get('[data-testid="sandbox-query-editor-query-input"]').should('not.be.disabled'); |
|
|
|
|