The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
import { codeMirrorHelpers } from "./e2e-codemirror-helpers";
import { popover } from "./e2e-ui-elements-helpers";
export function nativeEditorDataSource() {
return cy.findAllByTestId("gui-builder-data").first();
}
export function selectNativeEditorDataSource(name: string) {
nativeEditorDataSource().click();
popover().findByText(name).click();
}
function clickOnRun() {
cy.findByTestId("native-query-editor-container").within(() =>
cy.findByTestId("run-button").click(),
);
}
export const NativeEditor = codeMirrorHelpers("native-query-editor", {
dataSource: nativeEditorDataSource,
selectDataSource: selectNativeEditorDataSource,
clickOnRun,
});