fix: Remove the dataframe output from structured (#8233)
* fix: Remove the dataframe output from structured * Remove unneeded import * Update the description field * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * Update structured_output.py * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * 🐛 (typescript_test.yml): increase the maximum shard count to 40 to improve test distribution and performance * Update Financial Report Parser.json * Fix templates * [autofix.ci] apply automated fixes * Update Pokédex Agent.json * [autofix.ci] apply automated fixes * temp test fix * test fixes * [autofix.ci] apply automated fixes * add shards * ✨ (freeze-path.spec.ts): add functionality to add a flow to test on an empty langflow if the condition is met * file path fix --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Yuqi Tang <yuqi.tang@datastax.com> Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com> Co-authored-by: cristhianzl <cristhian.lousa@gmail.com> Co-authored-by: Mike Fortman <michael.fortman@datastax.com> Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
This commit is contained in:
parent
7be8161049
commit
fa18841788
11 changed files with 172 additions and 474 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { expect, Page, test } from "@playwright/test";
|
||||
import * as dotenv from "dotenv";
|
||||
import path from "path";
|
||||
import { addFlowToTestOnEmptyLangflow } from "../../utils/add-flow-to-test-on-empty-langflow";
|
||||
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
||||
import { initialGPTsetup } from "../../utils/initialGPTsetup";
|
||||
|
||||
|
|
@ -20,6 +21,14 @@ test(
|
|||
|
||||
await awaitBootstrapTest(page);
|
||||
|
||||
const firstRunLangflow = await page
|
||||
.getByTestId("empty-project-description")
|
||||
.count();
|
||||
|
||||
if (firstRunLangflow > 0) {
|
||||
await addFlowToTestOnEmptyLangflow(page);
|
||||
}
|
||||
|
||||
await page.getByTestId("side_nav_options_all-templates").click();
|
||||
await page.getByRole("heading", { name: "Basic Prompting" }).click();
|
||||
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ test(
|
|||
|
||||
await page.getByTestId("button_run_chat output").click();
|
||||
|
||||
await page.waitForTimeout(1000);
|
||||
await page.waitForTimeout(3000);
|
||||
|
||||
await page.waitForSelector("text=built successfully", {
|
||||
timeout: 30000 * 3,
|
||||
|
|
|
|||
|
|
@ -34,6 +34,15 @@ withEventDeliveryModes(
|
|||
|
||||
await initialGPTsetup(page);
|
||||
|
||||
//* TODO: Remove these 3 steps once the template is updated *//
|
||||
await page.getByTestId("dropdown-output-openaimodel").click();
|
||||
|
||||
await page
|
||||
.getByTestId("dropdown-item-output-openaimodel-language model")
|
||||
.click();
|
||||
|
||||
await page.getByTestId("tab_1_stringify").click();
|
||||
|
||||
await page.getByTestId("playground-btn-flow-io").click();
|
||||
|
||||
await page.waitForSelector('[data-testid="button-send"]', {
|
||||
|
|
|
|||
|
|
@ -39,6 +39,15 @@ withEventDeliveryModes(
|
|||
|
||||
await initialGPTsetup(page);
|
||||
|
||||
//* TODO: Remove these 3 steps once the template is updated *//
|
||||
await page
|
||||
.getByTestId("handle-structuredoutput-shownode-structured output-right")
|
||||
.click();
|
||||
await page
|
||||
.getByTestId("handle-parser-shownode-data or dataframe-left")
|
||||
.click();
|
||||
await page.getByTestId("tab_1_stringify").click();
|
||||
|
||||
await page.getByRole("button", { name: "Playground", exact: true }).click();
|
||||
|
||||
await page.waitForSelector('[data-testid="input-chat-playground"]', {
|
||||
|
|
|
|||
|
|
@ -41,6 +41,23 @@ withEventDeliveryModes(
|
|||
.nth(0)
|
||||
.fill(process.env.TAVILY_API_KEY ?? "");
|
||||
|
||||
//* TODO: Remove these 5 steps once the template is updated *//
|
||||
await page.getByTestId("dropdown-output-openaimodel").click();
|
||||
|
||||
await page
|
||||
.getByTestId("dropdown-item-output-openaimodel-language model")
|
||||
.click();
|
||||
|
||||
await page
|
||||
.getByTestId("handle-structuredoutput-shownode-structured output-right")
|
||||
.click();
|
||||
|
||||
await page
|
||||
.getByTestId("handle-parser-shownode-data or dataframe-left")
|
||||
.click();
|
||||
|
||||
await page.getByTestId("tab_1_stringify").click();
|
||||
|
||||
await page.getByTestId("button_run_chat output").click();
|
||||
await page.waitForSelector("text=built successfully", {
|
||||
timeout: 60000 * 3,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue