From a08822e85c34475ab122f24f3d2bd053d1709d96 Mon Sep 17 00:00:00 2001 From: Tyler Ohlsen Date: Fri, 21 Feb 2025 13:00:15 -0800 Subject: [PATCH] Update sample input to jsonlines format Signed-off-by: Tyler Ohlsen --- .../semantic_search/source_data.json | 30 ------------------- .../semantic_search/source_data.jsonl | 7 +++++ .../create_workflow_spec.js | 2 +- 3 files changed, 8 insertions(+), 31 deletions(-) delete mode 100644 cypress/fixtures/plugins/dashboards-flow-framework/semantic_search/source_data.json create mode 100644 cypress/fixtures/plugins/dashboards-flow-framework/semantic_search/source_data.jsonl diff --git a/cypress/fixtures/plugins/dashboards-flow-framework/semantic_search/source_data.json b/cypress/fixtures/plugins/dashboards-flow-framework/semantic_search/source_data.json deleted file mode 100644 index 7346ee8bc..000000000 --- a/cypress/fixtures/plugins/dashboards-flow-framework/semantic_search/source_data.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "item_text": "purpul high heels", - "item_price": 150 - }, - { - "item_text": "pair of jordans", - "item_price": 250 - }, - { - "item_text": "baseball cleats", - "item_price": 85 - }, - { - "item_text": "red pants", - "item_price": 95 - }, - { - "item_text": "blue skirt", - "item_price": 55 - }, - { - "item_text": "orange tank top", - "item_price": 30 - }, - { - "item_text": "maroon shorts", - "item_price": 35 - } -] diff --git a/cypress/fixtures/plugins/dashboards-flow-framework/semantic_search/source_data.jsonl b/cypress/fixtures/plugins/dashboards-flow-framework/semantic_search/source_data.jsonl new file mode 100644 index 000000000..88cf09e45 --- /dev/null +++ b/cypress/fixtures/plugins/dashboards-flow-framework/semantic_search/source_data.jsonl @@ -0,0 +1,7 @@ +{"item_text":"purpul high heels","item_price":150} +{"item_text":"pair of jordans","item_price":250} +{"item_text":"baseball cleats","item_price":85} +{"item_text":"red pants","item_price":95} +{"item_text":"blue skirt","item_price":55} +{"item_text":"orange tank top","item_price":30} +{"item_text":"maroon shorts","item_price":35} \ No newline at end of file diff --git a/cypress/integration/plugins/dashboards-flow-framework/create_workflow_spec.js b/cypress/integration/plugins/dashboards-flow-framework/create_workflow_spec.js index 320b3c93e..0f5382b8c 100644 --- a/cypress/integration/plugins/dashboards-flow-framework/create_workflow_spec.js +++ b/cypress/integration/plugins/dashboards-flow-framework/create_workflow_spec.js @@ -119,7 +119,7 @@ describe('Creating Workflows Using Various Methods', () => { .should('be.visible') .click(); cy.get(`[data-text="Upload a file"]`).should('be.visible').click(); - const filePath = `cypress/fixtures/${FF_FIXTURE_BASE_PATH}semantic_search/source_data.json`; + const filePath = `cypress/fixtures/${FF_FIXTURE_BASE_PATH}semantic_search/source_data.jsonl`; cy.get('input[type=file]').selectFile(filePath); cy.getElementByDataTestId('updateSourceDataButton') .should('be.visible')