diff --git a/cypress/integration/index.js b/cypress/integration/index.js new file mode 100644 index 00000000..34429a2b --- /dev/null +++ b/cypress/integration/index.js @@ -0,0 +1,6 @@ +export * from './long-running-score.spec'; +export * from './session_all_genes.spec'; +export * from './session_all_celllines.spec'; +export * from './session_all_tissues.spec'; + +export * from './ordino-video-test.spec'; diff --git a/cypress/integration/long-running-score.spec.js b/cypress/integration/long-running-score.spec.js new file mode 100644 index 00000000..0c738c7a --- /dev/null +++ b/cypress/integration/long-running-score.spec.js @@ -0,0 +1,43 @@ +// https://www.youtube.com/watch?v=JZIIf-k852g&t=1s +it('Long Running Score', function() { + cy.visit(Cypress.env('host')); + // Login + cy.get('[data-testid=ordino-navbar] [data-testid=start-analysis-button]').click(); + + cy.login(); // use Cypress command registerd in Ordino app + + // Show you can select single genes if you wanted + cy.scrollElementIntoCenter('[data-testid=dataset-card-genes-dataset] [data-testid=human-tab] [data-testid=ordino-dataset-searchbox] [data-testid=async-paginate-input]').click() + cy.get('[data-testid=dataset-card-genes-dataset] [data-testid=human-tab] [data-testid=ordino-dataset-searchbox] [data-testid=async-paginate-input]').click() + // wait intentionally a few seconds + cy.wait(2000) + cy.get('[data-testid=dataset-card-genes-dataset] [data-testid=human-link]').click(); + + // Open Lineup ranking + // Define api calls to wait: + cy.intercept('/api/tdp/db/publicdb/gene/desc').as('gene_desc'); + cy.intercept('/api/tdp/db/publicdb/gene/filter?filter_species=human&filter_panel=normal+chromosome+protein+coding+human+genes').as('human_genes'); + cy.get('[data-testid=normal-chromosome-protein-coding-human-genes-button]').click(); + cy.wait('@gene_desc'); + cy.wait('@human_genes'); + cy.waitLineupReadyOrdino(0) + + // Add column + cy.get('[data-testid=add-column-button]').click(); + cy.wait(2000); + cy.get('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(2) > span').click(); + cy.select2SingleSelect("data-type", "Relative Copy Number") + cy.formSelect("aggregation", "Boxplot") + cy.get('[data-testid=primary-dialog-button]').click(); + cy.checkScoreColLoadedOrdino(0, ['Relative Copy Number', 'Boxplot'], 9) + + // Add column + cy.get('[data-testid=add-column-button]').click(); + cy.get('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(2) > span').click(); + cy.formSelect("aggregation", "Frequency") + cy.formSelect("comparison-operator", "> greater than") + cy.get(':nth-child(5) > .form-control').clear(); + cy.get(':nth-child(5) > .form-control').type('4'); + cy.get('[data-testid=primary-dialog-button]').click(); + cy.checkScoreColLoadedOrdino(0, ['Frequency > 4'], 10) +}) \ No newline at end of file diff --git a/cypress/integration/ordino-video-test.spec.js b/cypress/integration/ordino-video-test.spec.js new file mode 100644 index 00000000..b9d1fae5 --- /dev/null +++ b/cypress/integration/ordino-video-test.spec.js @@ -0,0 +1,151 @@ +import { cy, it, Cypress } from 'local-cypress'; + +// https://www.youtube.com/watch?v=JZIIf-k852g&t=1s +it('ordino video', function() { + cy.visit(Cypress.env('host')); + + cy.get('[data-testid=ordino-navbar] [data-testid=start-analysis-button]').click(); + + cy.login(); // use Cypress command registerd in Ordino app + + // Show you can select single genes if you wanted + cy.scrollElementIntoCenter('[data-testid=dataset-card-genes-dataset] [data-testid=human-tab] [data-testid=ordino-dataset-searchbox] [data-testid=async-paginate-input]').click() + cy.get('[data-testid=dataset-card-genes-dataset] [data-testid=human-tab] [data-testid=ordino-dataset-searchbox] [data-testid=async-paginate-input]').click() + // wait intentionally a few seconds + cy.wait(2000) + cy.get('[data-testid=dataset-card-genes-dataset] [data-testid=human-link]').click(); + + // Open Lineup ranking + // Define api calls to wait: + cy.intercept('/api/tdp/db/publicdb/gene/desc').as('gene_desc'); + cy.intercept('/api/tdp/db/publicdb/gene/filter?filter_species=human&filter_panel=normal+chromosome+protein+coding+human+genes').as('human_genes'); + cy.get('[data-testid=normal-chromosome-protein-coding-human-genes-button]').click(); + cy.wait('@gene_desc'); + cy.wait('@human_genes'); + cy.waitLineupReadyOrdino(0) + + // Add column + cy.get('[data-testid=add-column-button]').click(); + cy.get('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span').click(); + cy.select2MultiSelect("cell-line", "HCC1954") + cy.select2MultiSelect("data-type", "Relative Copy Number") + cy.get('[data-testid=primary-dialog-button]').click(); + cy.checkScoreColLoadedOrdino(0, ['HCC1954', 'Relative Copy Number'], 9); + + // Sort by column + cy.get('[data-testid=viewWrapper-0] > .view > .inner > .tdp-view > :nth-child(1) > .le > .le-header > .le-thead > section:nth-last-child(-n+1) > .lu-toolbar > .lu-action-sort').click(); + + // Show some information + cy.get('[data-testid="(un)collapse-button"] > .fas').click(); + // intentionally wait 1 second + cy.wait(1000) + // filter with histogram not possible + cy.get('[data-testid="(un)collapse-button"] > .fas').click(); + + // Add column + cy.get('[data-testid=add-column-button]').click(); + cy.get('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span').click(); + cy.select2MultiSelect("cell-line", "HCC1954") + cy.select2MultiSelect("data-type", "Normalized Gene Expression (TPM Values)") + cy.get('[data-testid=primary-dialog-button]').click(); + cy.checkScoreColLoadedOrdino(0, ['HCC1954', 'Normalized Gene Expression (TPM Values)'], 10) + + // Add column + cy.get('[data-testid=add-column-button]').click(); + cy.get('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(5) > span').click(); + cy.select2MultiSelect("cell-line", "HCC1954") + cy.select2MultiSelect("data-type", "DRIVE RSA (ER McDonald III et al., Cell, 2017)") + cy.get('[data-testid=primary-dialog-button]').click(); + cy.checkScoreColLoadedOrdino(0, ['HCC1954', 'DRIVE RSA (ER McDonald III et al., Cell, 2017)'], 11) + + // Invert column + // Here the title should be used. For some reason cypress has problmes, because there is a " character in the title. For now I use the data-id + cy.get('[data-id="col10"] > .lu-toolbar > .lu-action-more').click(); + cy.get('.lu-action-data-mapping > span').click(); + cy.get('.browser-default').select('linear_invert'); + cy.get('.lu-dialog-buttons > [type="submit"]').click(); + + // Add column + cy.get('[data-testid=add-column-button]').click(); + cy.get('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(2) > span').click(); + cy.formSelect("row-1", "Tumor Type") + cy.select2MultiSelect("row-1", "breast carcinoma") + cy.select2SingleSelect("data-type", "Normalized Gene Expression (TPM Values)") + cy.get('[data-testid=primary-dialog-button]').click(); + cy.checkScoreColLoadedOrdino(0, ['Tumor Type', 'breast carcinoma', 'Normalized Gene Expression (TPM Values)'], 12) + + // Add column + cy.get('[data-testid=add-column-button]').click(); + cy.wait(2000); + cy.get('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(2) > span').click(); + cy.select2SingleSelect("data-type", "Relative Copy Number") + cy.formSelect("aggregation", "Boxplot") + cy.get('[data-testid=primary-dialog-button]').click(); + cy.checkScoreColLoadedOrdino(0, ['Relative Copy Number', 'Boxplot'], 13) + + // Add column + cy.get('[data-testid=add-column-button]').click(); + cy.get('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(2) > span').click(); + cy.formSelect("aggregation", "Frequency") + cy.formSelect("comparison-operator", "> greater than") + cy.get(':nth-child(5) > .form-control').clear(); + cy.get(':nth-child(5) > .form-control').type('4'); + cy.get('[data-testid=primary-dialog-button]').click(); + cy.checkScoreColLoadedOrdino(0, ['Frequency > 4'], 14) + + // Select elements and click on detail views + cy.waitLineupReadyOrdino(0) + cy.get('[data-index="0"] > .lu-renderer-selection').click(); + cy.get('[data-testid=celllinedb_expression_vs_copynumber]').click(); + cy.waitTdpNotBusy() + cy.waitLineupReadyOrdino(0) + cy.wait(2000) + // cy.get('[data-index="6"] > .lu-renderer-selection').click(); + // cy.waitTdpNotBusy() + // cy.waitLineupReadyOrdino(0) + // cy.wait(2000) + cy.get('[data-testid=targetvalidation]').click(); + cy.waitTdpNotBusy() + cy.wait(2000) + cy.get('[data-testid=ensembl_org]').click(); + cy.waitTdpNotBusy() + cy.wait(2000) + cy.get('[data-testid=copynumbertable]').click(); + cy.waitTdpNotBusy() + cy.wait(2000) + + // Sort and filter columns + cy.get('[data-testid=viewWrapper-1] > .view > .inner > .tdp-view > :nth-child(1) > .le > .le-header > .le-thead > section:nth-last-child(-n+1) > .lu-toolbar > .lu-action-sort').click(); + cy.get('[title="Tumor Type"] > .lu-toolbar > .lu-action-filter').click(); + cy.get('.lu-dialog-table > :nth-child(1) > :nth-child(2) > div').click(); + cy.get('.lu-dialog-table > :nth-child(1) > input').uncheck(); + cy.get(':nth-child(6) > :nth-child(2) > .lu-dialog-filter-table-entry-label').click(); + cy.get('.lu-dialog-table > :nth-child(6) > input').check(); + cy.get('.lu-dialog-buttons > [type="submit"]').click(); + + // Add column + cy.get('[data-testid=viewWrapper-1] [data-testid=side-panel-wrapper] [data-testid=lu-adder-div] [data-testid=add-column-button]').click(); + cy.get('[data-testid=viewWrapper-1] > .view > .inner > .tdp-view > [data-testid=side-panel-wrapper] > .panel-header > :nth-child(2) > [data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span').click(); + cy.select2MultiSelect("gene-symbol", ["BRCA1", "BRCA2"]) + cy.select2MultiSelect("data-type", "AA Mutated") + cy.get('[data-testid=primary-dialog-button]').click(); + cy.checkScoreColLoadedOrdino(1, ['BRCA1', 'AA Mutated'], 10) + cy.checkScoreColLoadedOrdino(1, ['BRCA2', 'AA Mutated'], 10) + + cy.waitLineupReadyOrdino(1) + cy.get('[data-testid=viewWrapper-1] [data-index="0"] > .lu-renderer-selection').click(); + cy.get('[data-testid=viewWrapper-1] [data-index="12"] > .lu-renderer-selection').click(); + cy.get('[data-testid=cosmic]').click(); + // Intentionally wait 2 seconds + cy.waitTdpNotBusy() + cy.wait(2000) + cy.get('[data-testid=show] [data-testid=form-select]').select('687455'); + // Intentionally wait 2 seconds + cy.waitTdpNotBusy() + cy.wait(2000) + cy.get('[data-testid=ordino_sessions_shortcut-link]').click(); + cy.get('[data-testid=current-session-sessionscard] [data-testid=ordino0] [data-testid=save-button]').click(); + cy.get('[data-testid=agree-input]').check(); + cy.get('[data-testid=primary-dialog-button]').click(); + cy.get('[data-testid=ordino_sessions_tab] [data-testid=close-button]').click(); +}) \ No newline at end of file diff --git a/cypress/integration/session_all_celllines.spec.js b/cypress/integration/session_all_celllines.spec.js new file mode 100644 index 00000000..266f8330 --- /dev/null +++ b/cypress/integration/session_all_celllines.spec.js @@ -0,0 +1,24 @@ +it('Load all Celllines', function() { + cy.visit(Cypress.env('host')); + + // Login + cy.get('[data-testid=ordino-navbar] [data-testid=start-analysis-button]').click(); + + cy.login(); // use Cypress command registerd in Ordino app + + // Show you can select single genes if you wanted + cy.scrollElementIntoCenter('[data-testid=dataset-card-cellline-dataset] [data-testid=human-tab] [data-testid=ordino-dataset-searchbox] [data-testid=async-paginate-input]').click() + cy.get('[data-testid=dataset-card-cellline-dataset] [data-testid=human-tab] [data-testid=ordino-dataset-searchbox] [data-testid=async-paginate-input]').click() + // wait intentionally a few seconds + cy.wait(2000) + cy.get('[data-testid=dataset-card-cellline-dataset] [data-testid=human-link]').click(); + + // Open Lineup ranking + // Define api calls to wait: + cy.intercept('/api/tdp/db/publicdb/cellline/desc').as('cellline_desc'); + cy.intercept('/api/tdp/db/publicdb/cellline/filter?filter_species=human&filter_panel=CCLE').as('human_cellline'); + cy.get('[data-testid=ccle-button]').click(); + cy.wait('@cellline_desc'); + cy.wait('@human_cellline'); + cy.waitLineupReadyOrdino(0) +}); diff --git a/cypress/integration/session_all_genes.spec.js b/cypress/integration/session_all_genes.spec.js new file mode 100644 index 00000000..68eabe85 --- /dev/null +++ b/cypress/integration/session_all_genes.spec.js @@ -0,0 +1,24 @@ +it('Load all Genes', function() { + cy.visit(Cypress.env('host')); + + // Login + cy.get('[data-testid=ordino-navbar] [data-testid=start-analysis-button]').click(); + + cy.login(); // use Cypress command registerd in Ordino app + + // Show you can select single genes if you wanted + cy.scrollElementIntoCenter('[data-testid=dataset-card-genes-dataset] [data-testid=human-tab] [data-testid=ordino-dataset-searchbox] [data-testid=async-paginate-input]').click() + cy.get('[data-testid=dataset-card-genes-dataset] [data-testid=human-tab] [data-testid=ordino-dataset-searchbox] [data-testid=async-paginate-input]').click() + // wait intentionally a few seconds + cy.wait(2000) + cy.get('[data-testid=dataset-card-genes-dataset] [data-testid=human-link]').click(); + + // Open Lineup ranking + // Define api calls to wait: + cy.intercept('/api/tdp/db/publicdb/gene/desc').as('gene_desc'); + cy.intercept('/api/tdp/db/publicdb/gene/filter?filter_species=human&filter_panel=normal+chromosome+protein+coding+human+genes').as('human_genes'); + cy.get('[data-testid=normal-chromosome-protein-coding-human-genes-button]').click(); + cy.wait('@gene_desc'); + cy.wait('@human_genes'); + cy.waitLineupReadyOrdino(0) +}); diff --git a/cypress/integration/session_all_tissues.spec.js b/cypress/integration/session_all_tissues.spec.js new file mode 100644 index 00000000..3d430890 --- /dev/null +++ b/cypress/integration/session_all_tissues.spec.js @@ -0,0 +1,24 @@ +it('Load all Tissues', function() { + cy.visit(Cypress.env('host')); + + // Login + cy.get('[data-testid=ordino-navbar] [data-testid=start-analysis-button]').click(); + + cy.login(); // use Cypress command registerd in Ordino app + + // Show you can select single genes if you wanted + cy.scrollElementIntoCenter('[data-testid=dataset-card-tissue-dataset] [data-testid=human-tab] [data-testid=ordino-dataset-searchbox] [data-testid=async-paginate-input]').click() + cy.get('[data-testid=dataset-card-tissue-dataset] [data-testid=human-tab] [data-testid=ordino-dataset-searchbox] [data-testid=async-paginate-input]').click() + // wait intentionally a few seconds + cy.wait(2000) + cy.get('[data-testid=dataset-card-tissue-dataset] [data-testid=human-link]').click(); + + // Open Lineup ranking + // Define api calls to wait: + cy.intercept('/api/tdp/db/publicdb/tissue/desc').as('tissue_desc'); + cy.intercept('/api/tdp/db/publicdb/tissue/filter?filter_species=human&filter_panel=TCGA+normals').as('human_tissue'); + cy.get('[data-testid=tcga-normals-button]').click(); + cy.wait('@tissue_desc'); + cy.wait('@human_tissue'); + cy.waitLineupReadyOrdino(0) +}); diff --git a/dist/menu/DatasetCard.d.ts.map b/dist/menu/DatasetCard.d.ts.map index ca77307b..d3463b7e 100644 --- a/dist/menu/DatasetCard.d.ts.map +++ b/dist/menu/DatasetCard.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"DatasetCard.d.ts","sourceRoot":"","sources":["../../src/menu/DatasetCard.tsx"],"names":[],"mappings":";AAmBA,OAAO,EAAE,oCAAoC,EAAE,MAAM,oBAAoB,CAAC;AAE1E,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,oCAAoC,eA4MjJ"} \ No newline at end of file +{"version":3,"file":"DatasetCard.d.ts","sourceRoot":"","sources":["../../src/menu/DatasetCard.tsx"],"names":[],"mappings":";AAmBA,OAAO,EAAE,oCAAoC,EAAE,MAAM,oBAAoB,CAAC;AAE1E,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,oCAAoC,eA+MjJ"} \ No newline at end of file diff --git a/dist/menu/DatasetCard.js b/dist/menu/DatasetCard.js index c4d8fbcf..c1666290 100644 --- a/dist/menu/DatasetCard.js +++ b/dist/menu/DatasetCard.js @@ -4,6 +4,7 @@ import { NamedSetList, OrdinoContext } from 'ordino'; import { Species } from 'tdp_gene'; import { DatasetSearchBox } from './DatasetSearchBox'; export default function DatasetCard({ name, icon, tabs, startViewId, dataSource, cssClass, tokenSeparators }) { + const testId = `dataset-card-${cssClass}`; const { app } = React.useContext(OrdinoContext); const [namedSets, setNamedSets] = React.useState([]); const [dirtyNamedSets, setDirtyNamedSets] = React.useState(true); @@ -92,7 +93,7 @@ export default function DatasetCard({ name, icon, tabs, startViewId, dataSource, }; const id = React.useMemo(() => UniqueIdManager.getInstance().uniqueId(), []); const activeTabIndex = 0; - return (React.createElement("div", { className: `ordino-dataset ${cssClass || ''}` }, + return (React.createElement("div", { className: `ordino-dataset ${cssClass || ''}`, "data-testid": testId }, React.createElement("h4", { className: "text-start mb-3" }, React.createElement("i", { className: `me-2 ordino-icon-2 ${icon}` }), name), @@ -100,13 +101,13 @@ export default function DatasetCard({ name, icon, tabs, startViewId, dataSource, React.createElement("div", { className: "card-body p-3" }, React.createElement("ul", { className: "nav nav-pills session-tab" }, tabs.map((tab, index) => { return (React.createElement("li", { key: tab.id, className: "nav-item", role: "presentation" }, - React.createElement("a", { className: `nav-link ${index === activeTabIndex ? 'active' : ''}`, id: `dataset-tab-${tab.id}-${id}`, "data-bs-toggle": "tab", href: `#dataset-panel-${tab.id}-${id}`, role: "tab", "aria-controls": `dataset-panel-${tab.id}-${id}`, "aria-selected": index === activeTabIndex }, + React.createElement("a", { className: `nav-link ${index === activeTabIndex ? 'active' : ''}`, "data-testid": `${tab.id}-link`, id: `dataset-tab-${tab.id}-${id}`, "data-bs-toggle": "tab", href: `#dataset-panel-${tab.id}-${id}`, role: "tab", "aria-controls": `dataset-panel-${tab.id}-${id}`, "aria-selected": index === activeTabIndex }, React.createElement("i", { className: `me-2 ${tab.icon}` }), tab.name))); })), React.createElement("div", { className: "tab-content" }, tabs.map((tab, index) => { const separators = tokenSeparators ? { tokenSeparators } : null; - return (React.createElement("div", { key: tab.id, className: `tab-pane fade mt-4 ${index === activeTabIndex ? 'show active' : ''}`, role: "tabpanel", id: `dataset-panel-${tab.id}-${id}`, "aria-labelledby": `dataset-tab-${tab.id}-${id}` }, + return (React.createElement("div", { key: tab.id, className: `tab-pane fade mt-4 ${index === activeTabIndex ? 'show active' : ''}`, "data-testid": `${tab.id}-tab`, role: "tabpanel", id: `dataset-panel-${tab.id}-${id}`, "aria-labelledby": `dataset-tab-${tab.id}-${id}` }, React.createElement(DatasetSearchBox, { placeholder: `Add ${name}`, dataSource: dataSource, params: { species: tab.id }, onSaveAsNamedSet: (items) => onSaveAsNamedSet(items, { key: Species.SPECIES_SESSION_KEY, value: tab.id }), onOpen: (event, searchResult) => { onOpenSearchResult(event, { searchResult, species: tab.id }); }, ...separators }), diff --git a/dist/menu/DatasetCard.js.map b/dist/menu/DatasetCard.js.map index 2c11b792..fdc2bfe7 100644 --- a/dist/menu/DatasetCard.js.map +++ b/dist/menu/DatasetCard.js.map @@ -1 +1 @@ -{"version":3,"file":"DatasetCard.js","sourceRoot":"","sources":["../../src/menu/DatasetCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,UAAU,EAEV,WAAW,EACX,eAAe,EACf,cAAc,EACd,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,KAAK,GACN,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,OAAO,EAAuB,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAwC;IAChJ,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAChD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAqB,EAAE,CAAC,CAAC;IACzE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEjE,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,CAA6B,GAAG,EAAE;QACvE,OAAO,KAAK,IAAI,EAAE;YAChB,MAAM,MAAM,GAA2D,MAAM,aAAa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E,eAAe,EACvB,KAAK,EAAE,WAAW,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,GAC7C;4BACF,oBAAC,YAAY,IACX,UAAU,EAAC,cAAc,EACzB,UAAU,EAAC,YAAY,EACvB,MAAM,EAAE,CAAC,KAAK,EAAE,QAAmB,EAAE,EAAE;oCACrC,cAAc,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;gCACvD,CAAC,EACD,cAAc,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAC7C,gBAAgB,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAC/C,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,WAAW,CAAC,eAAe,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,GACjD,CACE,CACF,CACP,CAAC;gBACJ,CAAC,CAAC,CACE,CACF,CACF,CACF,CACP,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"DatasetCard.js","sourceRoot":"","sources":["../../src/menu/DatasetCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,UAAU,EAEV,WAAW,EACX,eAAe,EACf,cAAc,EACd,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,KAAK,GACN,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,OAAO,EAAuB,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,EAA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ts.map b/dist/menu/DatasetSearchBox.d.ts.map index 51d6774a..d19b6b47 100644 --- a/dist/menu/DatasetSearchBox.d.ts.map +++ b/dist/menu/DatasetSearchBox.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"DatasetSearchBox.d.ts","sourceRoot":"","sources":["../../src/menu/DatasetSearchBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAiB,UAAU,EAAgB,MAAM,UAAU,CAAC;AAInE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAa,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAazD,UAAU,uBAAuB;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,UAAU,sBAAsB;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,gBAAgB,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAChD,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAC7F;;OAEG;IACH,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,gBAAgB,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAW,EAAE,eAA6B,EAAE,EAAE,sBAAsB,eA6IzJ"} \ No newline at end of file +{"version":3,"file":"DatasetSearchBox.d.ts","sourceRoot":"","sources":["../../src/menu/DatasetSearchBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAiB,UAAU,EAAgB,MAAM,UAAU,CAAC;AAInE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAa,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAQzD,UAAU,uBAAuB;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,UAAU,sBAAsB;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,gBAAgB,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAChD,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAC7F;;OAEG;IACH,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AA2BD,wBAAgB,gBAAgB,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAW,EAAE,eAA6B,EAAE,EAAE,sBAAsB,eAgKzJ"} \ No newline at end of file diff --git a/dist/menu/DatasetSearchBox.js b/dist/menu/DatasetSearchBox.js index ef25e924..34913c36 100644 --- a/dist/menu/DatasetSearchBox.js +++ b/dist/menu/DatasetSearchBox.js @@ -4,10 +4,25 @@ import { components } from 'react-select'; import { AsyncPaginate } from 'react-select-async-paginate'; import Highlighter from 'react-highlight-words'; import { GeneUtils } from '../common'; +// functions to add data-testid attribute to react-select components +// eslint-disable-next-line +const addDataTestId = (Component, dataTestId) => ( +// eslint-disable-next-line +(props) => ( +// eslint-disable-next-line +React.createElement(Component, { ...props, + // eslint-disable-next-line + innerProps: Object.assign({}, props.innerProps, { 'data-testid': `${dataTestId}${props.data ? '-' + props.data.id : ''}` }) }))); function Input(props) { const { onPaste } = props.selectProps; - return React.createElement(components.Input, { onPaste: onPaste, ...props }); + const modifiedProps = { 'data-testid': 'async-paginate-input', ...props }; + delete modifiedProps.popoverType; // remove the "illegal" prop from the copy + return React.createElement(components.Input, { onPaste: onPaste, ...modifiedProps }); } +const clearIndicator = (props) => components.ClearIndicator && React.createElement(components.ClearIndicator, { ...props }); +const dropdownIndicator = (props) => components.DropdownIndicator && React.createElement(components.DropdownIndicator, { ...props }); +const option = (props) => components.Option && React.createElement(components.Option, { ...props }); +const multiValueRemove = (props) => components.MultiValueRemove && React.createElement(components.MultiValueRemove, { ...props }); export function DatasetSearchBox({ placeholder, dataSource, onOpen, onSaveAsNamedSet, params = {}, tokenSeparators = /[\s;,]+/gm }) { const [items, setItems] = React.useState([]); const [inputValue, setInputValue] = React.useState(''); @@ -27,6 +42,7 @@ export function DatasetSearchBox({ placeholder, dataSource, onOpen, onSaveAsName }, })); }; + // eslint-disable-next-line @typescript-eslint/no-shadow const formatOptionLabel = (option, ctx) => { var _a; // do not highlight selected elements @@ -60,10 +76,16 @@ export function DatasetSearchBox({ placeholder, dataSource, onOpen, onSaveAsName type: dataSource.tableName, }, }; - return (React.createElement("div", { className: "hstack gap-3 ordino-dataset-searchbox" }, - React.createElement(AsyncPaginate, { className: "flex-fill", onPaste: onPaste, placeholder: placeholder, noOptionsMessage: () => 'No results found', isMulti: true, loadOptions: loadOptions, inputValue: inputValue, value: items, onChange: setItems, onInputChange: setInputValue, formatOptionLabel: formatOptionLabel, hideSelectedOptions: true, getOptionLabel: (option) => option.text, getOptionValue: (option) => option.id, captureMenuScroll: false, additional: { + return (React.createElement("div", { className: "hstack gap-3 ordino-dataset-searchbox", "data-testid": "ordino-dataset-searchbox" }, + React.createElement(AsyncPaginate, { className: "flex-fill", onPaste: onPaste, placeholder: placeholder, noOptionsMessage: () => 'No results found', isMulti: true, loadOptions: loadOptions, inputValue: inputValue, value: items, onChange: setItems, onInputChange: setInputValue, formatOptionLabel: formatOptionLabel, hideSelectedOptions: true, getOptionLabel: (opt) => opt.text, getOptionValue: (opt) => opt.id, captureMenuScroll: false, additional: { page: 0, // page starts from index 0 - }, components: { Input }, styles: { + }, components: { + Input, + Option: addDataTestId(option, 'async-paginate-option'), + MultiValueRemove: addDataTestId(multiValueRemove, 'async-paginate-multiselect-remove'), + ClearIndicator: addDataTestId(clearIndicator, 'async-paginate-clearindicator'), + DropdownIndicator: addDataTestId(dropdownIndicator, 'async-paginate-dropdownindicator'), + }, styles: { multiValue: (styles, { data }) => ({ ...styles, border: `1px solid #CCC`, @@ -109,7 +131,7 @@ export function DatasetSearchBox({ placeholder, dataSource, onOpen, onSaveAsName }, }), } }), - React.createElement("button", { type: "button", className: "btn btn-secondary", disabled: !(validItems === null || validItems === void 0 ? void 0 : validItems.length), onClick: (event) => onOpen(event, searchResults) }, "Open"), - React.createElement("button", { type: "button", className: "btn btn-outline-secondary", disabled: !(validItems === null || validItems === void 0 ? void 0 : validItems.length), onClick: () => onSaveAsNamedSet(validItems) }, "Save as set"))); + React.createElement("button", { type: "button", className: "btn btn-secondary", "data-testid": "open-button", disabled: !(validItems === null || validItems === void 0 ? void 0 : validItems.length), onClick: (event) => onOpen(event, searchResults) }, "Open"), + React.createElement("button", { type: "button", className: "btn btn-outline-secondary", "data-testid": "save-button", disabled: !(validItems === null || validItems === void 0 ? void 0 : validItems.length), onClick: () => onSaveAsNamedSet(validItems) }, "Save as set"))); } //# sourceMappingURL=DatasetSearchBox.js.map \ No newline at end of file diff --git a/dist/menu/DatasetSearchBox.js.map b/dist/menu/DatasetSearchBox.js.map index 01262210..e903e9d9 100644 --- a/dist/menu/DatasetSearchBox.js.map +++ b/dist/menu/DatasetSearchBox.js.map @@ -1 +1 @@ -{"version":3,"file":"DatasetSearchBox.js","sourceRoot":"","sources":["../../src/menu/DatasetSearchBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAc,YAAY,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,UAAU,EAAyB,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,W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AK,EAAE,MAAM;qBACd;oBACD,mCAAmC;oBACnC,KAAK,EAAE;wBACL,KAAK,EAAE,iBAAiB;wBACxB,SAAS,EAAE,MAAM;qBAClB;iBACF,CAAC;aACH,GACD;QACF,gCACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,mBAAmB,iBACjB,aAAa,EACzB,QAAQ,EAAE,CAAC,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,CAAA,EAC7B,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,aAAa,CAAC,WAGzC;QACT,gCACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,2BAA2B,iBACzB,aAAa,EACzB,QAAQ,EAAE,CAAC,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,CAAA,EAC7B,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,UAAU,CAAC,kBAGpC,CACL,CACP,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/dist/views/SimilarityView.d.ts.map b/dist/views/SimilarityView.d.ts.map index 6bf2362b..3c40c144 100644 --- a/dist/views/SimilarityView.d.ts.map +++ b/dist/views/SimilarityView.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"SimilarityView.d.ts","sourceRoot":"","sources":["../../src/views/SimilarityView.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,qBAAqB,EAMtB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,iBAAiB,EAAqD,MAAM,UAAU,CAAC;AAKhG,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,CAAC,MAAM,CAAsB;gBAExB,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAE,OAAO,CAAC,oBAAoB,CAAM;IAc1H,SAAS,CAAC,qBAA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E,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKvD,SAAS,CAAC,gBAAgB;IAK1B,OAAO,CAAC,UAAU;IAOlB,SAAS,CAAC,oBAAoB,CAAC,QAAQ,EAAE,iBAAiB;CAe3D"} \ No newline at end of file diff --git a/dist/views/SimilarityView.js b/dist/views/SimilarityView.js index 772e4b4b..36b7c019 100644 --- a/dist/views/SimilarityView.js +++ b/dist/views/SimilarityView.js @@ -101,7 +101,7 @@ export class SimilarityView extends ARankingView { updateImpl() { return this.updateOptionsData().then(() => { this.loader = null; - this.rebuild(); + return this.rebuild(); }); } createInitialRanking(provider) { diff --git a/dist/views/SimilarityView.js.map b/dist/views/SimilarityView.js.map index e93be3db..454bf48e 100644 --- a/dist/views/SimilarityView.js.map +++ b/dist/views/SimilarityView.js.map @@ -1 +1 @@ -{"version":3,"file":"SimilarityView.js","sourceRoot":"","sources":["../../src/views/SimilarityView.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAIL,YAAY,EAEZ,eAAe,EACf,eAAe,EAGf,aAAa,GACd,MAAM,UAAU,CAAC;AAClB,OAAO,EAAqB,mBAAmB,EAAE,eAAe,EAAe,MAAM,UAAU,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,SAAS,GAAG,sBAAsB,CAAC;AAEzC,MAAM,OAAO,cAAe,SAAQ,YAAY;IAG9C,YAAY,OAAqB,EAAE,SAAqB,EAAE,MAAmB,EAAE,UAAyC,EAAE;QACxH,KAAK,CACH,OAAO,EACP,SAAS,EACT,MAAM,EACN,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE;YACrB,wBAAwB,EAAE;gBACxB,QAAQ,EAAE,aAAa;aACxB;SACF,CAAC,CACH,CAAC;QAZI,WAAM,GAAiB,IAAI,CAAC;QAalC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,u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,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QACnC,MAAM,KAAK,GAAgB,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC;QAC/E,OAAO;aACJ,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC;aAClC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACb,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC/B,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YACjB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;QACL,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"SimilarityView.js","sourceRoot":"","sources":["../../src/views/SimilarityView.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAIL,YAAY,EAEZ,eAAe,EACf,eAAe,EAEf,aAAa,GACd,MAAM,UAAU,CAAC;AAClB,OAAO,EAAqB,mBAAmB,EAAE,eAAe,EAAe,MAAM,UAAU,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,SAAS,GAAG,sBAAsB,CAAC;AAEzC,MAAM,OAAO,cAAe,SAAQ,YAAY;IAG9C,YAAY,OAAqB,EAAE,SAAqB,EAAE,MAAmB,EAAE,UAAyC,EAAE;QACxH,KAAK,CACH,OAAO,EACP,SAAS,EACT,MAAM,EACN,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE;YACrB,wBAAwB,EAAE;gBACxB,QAAQ,EAAE,aAAa;aACxB;SACF,CAAC,CACH,CAAC;QAZI,WAAM,GAAiB,IAAI,CAAC;QAalC,IAAI,CAAC,IAAI,CAAC,S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QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QACnC,MAAM,KAAK,GAAgB,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC;QAC/E,OAAO;aACJ,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC;aAClC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACb,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC/B,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YACjB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;QACL,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;CACF"} \ No newline at end of file diff --git a/src/menu/DatasetCard.tsx b/src/menu/DatasetCard.tsx index 11d621fa..ee81de24 100644 --- a/src/menu/DatasetCard.tsx +++ b/src/menu/DatasetCard.tsx @@ -20,6 +20,7 @@ import { DatasetSearchBox } from './DatasetSearchBox'; import { IPublicDbStartMenuDatasetSectionDesc } from '../base/extensions'; export default function DatasetCard({ name, icon, tabs, startViewId, dataSource, cssClass, tokenSeparators }: IPublicDbStartMenuDatasetSectionDesc) { + const testId = `dataset-card-${cssClass}`; const { app } = React.useContext(OrdinoContext); const [namedSets, setNamedSets] = React.useState([]); const [dirtyNamedSets, setDirtyNamedSets] = React.useState(true); @@ -132,7 +133,7 @@ export default function DatasetCard({ name, icon, tabs, startViewId, dataSource, const activeTabIndex = 0; return ( -
+

{name} @@ -145,6 +146,7 @@ export default function DatasetCard({ name, icon, tabs, startViewId, dataSource,
  • ; -} - interface IDatasetSearchOption { id: any; text: string; @@ -33,6 +28,31 @@ interface IDatasetSearchBoxProps { tokenSeparators?: RegExp; } +// functions to add data-testid attribute to react-select components +// eslint-disable-next-line +const addDataTestId = (Component, dataTestId) => ( + // eslint-disable-next-line + (props) => ( + // eslint-disable-next-line + )); + +function Input(props: any) { + const { onPaste } = props.selectProps; + const modifiedProps = { 'data-testid': 'async-paginate-input', ...props }; + delete modifiedProps.popoverType; // remove the "illegal" prop from the copy + return ; +} + +const clearIndicator = (props) => components.ClearIndicator && ; + +const dropdownIndicator = (props) => components.DropdownIndicator && ; + +const option = (props) => components.Option && ; + +const multiValueRemove = (props) => components.MultiValueRemove && ; + export function DatasetSearchBox({ placeholder, dataSource, onOpen, onSaveAsNamedSet, params = {}, tokenSeparators = /[\s;,]+/gm }: IDatasetSearchBoxProps) { const [items, setItems] = React.useState([]); const [inputValue, setInputValue] = React.useState(''); @@ -53,6 +73,7 @@ export function DatasetSearchBox({ placeholder, dataSource, onOpen, onSaveAsName })); }; + // eslint-disable-next-line @typescript-eslint/no-shadow const formatOptionLabel = (option: IDatasetSearchOption, ctx: FormatOptionLabelMeta) => { // do not highlight selected elements if (ctx.selectValue?.some((o) => o.id === option.id)) { @@ -97,7 +118,7 @@ export function DatasetSearchBox({ placeholder, dataSource, onOpen, onSaveAsName }; return ( -
    +
    option.text} - getOptionValue={(option) => option.id} + getOptionLabel={(opt) => opt.text} + getOptionValue={(opt) => opt.id} captureMenuScroll={false} additional={{ page: 0, // page starts from index 0 }} - components={{ Input }} + components={{ + Input, + Option: addDataTestId(option, 'async-paginate-option'), + MultiValueRemove: addDataTestId(multiValueRemove, 'async-paginate-multiselect-remove'), + ClearIndicator: addDataTestId(clearIndicator, 'async-paginate-clearindicator'), + DropdownIndicator: addDataTestId(dropdownIndicator, 'async-paginate-dropdownindicator'), + }} styles={{ multiValue: (styles, { data }) => ({ ...styles, @@ -166,10 +193,22 @@ export function DatasetSearchBox({ placeholder, dataSource, onOpen, onSaveAsName }), }} /> - -
    diff --git a/src/views/SimilarityView.ts b/src/views/SimilarityView.ts index f2e1a376..9d9ef170 100644 --- a/src/views/SimilarityView.ts +++ b/src/views/SimilarityView.ts @@ -12,7 +12,6 @@ import { ColumnDescUtils, FormElementType, IFormSelectElement, - IDTypeManager, RestBaseUtils, } from 'tdp_core'; import { LocalDataProvider, createSelectionDesc, createStackDesc, StackColumn } from 'lineupjs'; @@ -138,7 +137,7 @@ export class SimilarityView extends ARankingView { private updateImpl() { return this.updateOptionsData().then(() => { this.loader = null; - this.rebuild(); + return this.rebuild(); }); }