From 01160a57683658e62c6640925060ae3b3d2f7173 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Tue, 25 Jun 2024 20:00:04 -0300 Subject: [PATCH 01/23] chore: Update proxy IDs on group node outputs to ensure consistency --- src/frontend/src/utils/reactflowUtils.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 9b62b2624..a2544b247 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -1117,6 +1117,18 @@ export function updateProxyIdsOnTemplate( }); } +export function updateProxyIdsOnOutputs( + outputs: OutputFieldType[] | undefined, + idsMap: { [key: string]: string }, +) { + if(!outputs) return; + outputs.forEach((output) => { + if (output.proxy && idsMap[output.proxy.id]) { + output.proxy.id = idsMap[output.proxy.id]; + } + }); +} + export function updateEdgesIds( edges: Edge[], idsMap: { [key: string]: string }, @@ -1485,6 +1497,7 @@ export function updateGroupRecursion(groupNode: NodeType, edges: Edge[]) { let newFlow = groupNode.data.node!.flow; const idsMap = updateIds(newFlow.data!); updateProxyIdsOnTemplate(groupNode.data.node!.template, idsMap); + updateProxyIdsOnOutputs(groupNode.data.node.outputs, idsMap); let flowEdges = edges; updateEdgesIds(flowEdges, idsMap); } From ea9f623fc98a92a1b7494c5821676a0fe0e7dd81 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Tue, 25 Jun 2024 20:00:49 -0300 Subject: [PATCH 02/23] code format --- src/frontend/src/utils/reactflowUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index a2544b247..d16a7e851 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -1121,7 +1121,7 @@ export function updateProxyIdsOnOutputs( outputs: OutputFieldType[] | undefined, idsMap: { [key: string]: string }, ) { - if(!outputs) return; + if (!outputs) return; outputs.forEach((output) => { if (output.proxy && idsMap[output.proxy.id]) { output.proxy.id = idsMap[output.proxy.id]; From 75cc36240951153d200241eb00bfc9991e9258c0 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 27 Jun 2024 13:59:13 -0300 Subject: [PATCH 03/23] feat: convert non-object rows to array of objects in DataOutputComponent --- src/frontend/src/components/dataOutputComponent/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/components/dataOutputComponent/index.tsx b/src/frontend/src/components/dataOutputComponent/index.tsx index 9a3b2f66d..5fe4d3637 100644 --- a/src/frontend/src/components/dataOutputComponent/index.tsx +++ b/src/frontend/src/components/dataOutputComponent/index.tsx @@ -10,9 +10,14 @@ function DataOutputComponent({ columnMode = "union", }: { pagination: boolean; - rows: any; + rows: any[]; columnMode?: "intersection" | "union"; }) { + // If the rows are not an array of objects, convert them to an array of objects + if(rows.some((row) => typeof row !== "object")) { + rows = rows.map((row) => ({ data: row })); + } + const columns = extractColumnsFromRows(rows, columnMode); const columnDefs = columns.map((col, idx) => ({ From 248560b3ef9de79671b7b5ff9dc3df64de34b7cc Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 27 Jun 2024 14:00:46 -0300 Subject: [PATCH 04/23] format code --- src/frontend/src/components/dataOutputComponent/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/dataOutputComponent/index.tsx b/src/frontend/src/components/dataOutputComponent/index.tsx index 5fe4d3637..cc42be4e3 100644 --- a/src/frontend/src/components/dataOutputComponent/index.tsx +++ b/src/frontend/src/components/dataOutputComponent/index.tsx @@ -14,7 +14,7 @@ function DataOutputComponent({ columnMode?: "intersection" | "union"; }) { // If the rows are not an array of objects, convert them to an array of objects - if(rows.some((row) => typeof row !== "object")) { + if (rows.some((row) => typeof row !== "object")) { rows = rows.map((row) => ({ data: row })); } From ec1e37a7d9978d92a7a6585f22b4a2d2cab45ce3 Mon Sep 17 00:00:00 2001 From: igorrCarvalho Date: Thu, 27 Jun 2024 18:13:02 -0300 Subject: [PATCH 05/23] fix: Tweaks tab dissapearing with hook component --- .../src/components/codeTabsComponent/index.tsx | 15 ++++++++++----- src/frontend/src/modals/apiModal/index.tsx | 11 ++++++----- .../src/modals/apiModal/utils/get-tabs-order.tsx | 3 ++- src/frontend/src/types/components/index.ts | 2 ++ 4 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/frontend/src/components/codeTabsComponent/index.tsx b/src/frontend/src/components/codeTabsComponent/index.tsx index 4b22ac11e..3cd0f3490 100644 --- a/src/frontend/src/components/codeTabsComponent/index.tsx +++ b/src/frontend/src/components/codeTabsComponent/index.tsx @@ -26,6 +26,7 @@ import { TabsTrigger, } from "../../components/ui/tabs"; import { LANGFLOW_SUPPORTED_TYPES } from "../../constants/constants"; +import getTabsOrder from "../../modals/apiModal/utils/get-tabs-order"; import { Case } from "../../shared/components/caseComponent"; import { useDarkStore } from "../../stores/darkStore"; import useFlowStore from "../../stores/flowStore"; @@ -56,6 +57,8 @@ export default function CodeTabsComponent({ setActiveTweaks, activeTweaks, allowExport = false, + isThereTweaks = false, + isThereWH = false, }: codeTabsPropsType) { const [isCopied, setIsCopied] = useState(false); const [data, setData] = useState(flow ? flow["data"]!["nodes"] : null); @@ -93,6 +96,8 @@ export default function CodeTabsComponent({ return node.data.node.template[templateParam].type; }; + const tabsOrder = getTabsOrder(isThereWH, isThereTweaks); + return ( ( - {idx < 5 ? ( + {tabsOrder[idx].toLowerCase() !== "tweaks" ? (
{tab.description && (
- ) : idx === 5 ? ( + ) : tabsOrder[idx].toLowerCase() === "tweaks" ? ( <>
boolean)) => void; }, ref, - ) => { + ) => { + const tweaksCode = buildTweaks(flow); const tweak = useTweaksStore((state) => state.tweak); const addTweaks = useTweaksStore((state) => state.setTweak); const setTweaksList = useTweaksStore((state) => state.setTweaksList); const tweaksList = useTweaksStore((state) => state.tweaksList); - + const isThereTweaks = Object.keys(tweaksCode).length > 0; const [activeTweaks, setActiveTweaks] = useState(false); const { autoLogin } = useContext(AuthContext); const [open, setOpen] = @@ -82,7 +83,6 @@ const ApiModal = forwardRef( const pythonCode = getPythonCode(flow?.name, tweak); const widgetCode = getWidgetCode(flow?.id, flow?.name, autoLogin); const includeWebhook = flow.webhook; - const tweaksCode = buildTweaks(flow); const codesArray = [ runCurlCode, webhookCurlCode, @@ -121,7 +121,7 @@ const ApiModal = forwardRef( filterNodes(); - if (Object.keys(tweaksCode).length > 0) { + if (isThereTweaks) { setActiveTab("0"); setTabs(createTabsArray(codesArray, includeWebhook, true)); } else { @@ -215,7 +215,6 @@ const ApiModal = forwardRef( ); const pythonCode = getPythonCode(flow?.name, cloneTweak); const widgetCode = getWidgetCode(flow?.id, flow?.name, autoLogin); - const isThereTweaks = Object.keys(tweaksCode).length > 0; const codesObj = getCodesObj({ runCurlCode, webhookCurlCode, @@ -251,6 +250,8 @@ const ApiModal = forwardRef( ; activeTab: string; From d0e017ea2d5dc6d2922ac08e7fba1764531ca4ee Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 27 Jun 2024 21:19:41 +0000 Subject: [PATCH 06/23] [autofix.ci] apply automated fixes --- src/frontend/src/components/codeTabsComponent/index.tsx | 6 +++--- src/frontend/src/modals/apiModal/index.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/components/codeTabsComponent/index.tsx b/src/frontend/src/components/codeTabsComponent/index.tsx index 3cd0f3490..a7c80ebd6 100644 --- a/src/frontend/src/components/codeTabsComponent/index.tsx +++ b/src/frontend/src/components/codeTabsComponent/index.tsx @@ -173,9 +173,9 @@ export default function CodeTabsComponent({ {tabs.map((tab, idx) => ( {tabsOrder[idx].toLowerCase() !== "tweaks" ? (
diff --git a/src/frontend/src/modals/apiModal/index.tsx b/src/frontend/src/modals/apiModal/index.tsx index ba6584722..7971d8288 100644 --- a/src/frontend/src/modals/apiModal/index.tsx +++ b/src/frontend/src/modals/apiModal/index.tsx @@ -43,7 +43,7 @@ const ApiModal = forwardRef( setOpen?: (a: boolean | ((o?: boolean) => boolean)) => void; }, ref, - ) => { + ) => { const tweaksCode = buildTweaks(flow); const tweak = useTweaksStore((state) => state.tweak); const addTweaks = useTweaksStore((state) => state.setTweak); From 2d737a9fa506fa0764bf1e8f8cf79085bd1a414f Mon Sep 17 00:00:00 2001 From: igorrCarvalho Date: Fri, 28 Jun 2024 01:16:00 -0300 Subject: [PATCH 07/23] Fix: Ctrl + C not working on tooltips --- .../src/pages/FlowPage/components/PageComponent/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx index f302c70e3..db1736a60 100644 --- a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx @@ -228,7 +228,7 @@ export default function Page({ } function handleCopy(e: KeyboardEvent) { - if (!isWrappedWithClass(e, "nocopy")) { + if (!isWrappedWithClass(e, "nocopy") && isWrappedWithClass(e, "react-flow__node")) { e.preventDefault(); (e as unknown as Event).stopImmediatePropagation(); if (window.getSelection()?.toString().length === 0 && lastSelection) { From 63113aa8ea8a31d654993ab7f5c2dd9157f66e8a Mon Sep 17 00:00:00 2001 From: igorrCarvalho Date: Fri, 28 Jun 2024 03:32:59 -0300 Subject: [PATCH 08/23] Refactor: enable node copy for multiple selection --- .../src/pages/FlowPage/components/PageComponent/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx index db1736a60..e108156e4 100644 --- a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx @@ -228,7 +228,8 @@ export default function Page({ } function handleCopy(e: KeyboardEvent) { - if (!isWrappedWithClass(e, "nocopy") && isWrappedWithClass(e, "react-flow__node")) { + const multipleSelection = lastSelection?.nodes ? lastSelection?.nodes.length > 0 : false; + if (!isWrappedWithClass(e, "nocopy") && (isWrappedWithClass(e, "react-flow__node") || multipleSelection)) { e.preventDefault(); (e as unknown as Event).stopImmediatePropagation(); if (window.getSelection()?.toString().length === 0 && lastSelection) { From fc137cc6900dbab57ae0429ad09c1df23faa5827 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 28 Jun 2024 06:34:22 +0000 Subject: [PATCH 09/23] [autofix.ci] apply automated fixes --- .../pages/FlowPage/components/PageComponent/index.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx index e108156e4..87bbfbf68 100644 --- a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx @@ -228,8 +228,13 @@ export default function Page({ } function handleCopy(e: KeyboardEvent) { - const multipleSelection = lastSelection?.nodes ? lastSelection?.nodes.length > 0 : false; - if (!isWrappedWithClass(e, "nocopy") && (isWrappedWithClass(e, "react-flow__node") || multipleSelection)) { + const multipleSelection = lastSelection?.nodes + ? lastSelection?.nodes.length > 0 + : false; + if ( + !isWrappedWithClass(e, "nocopy") && + (isWrappedWithClass(e, "react-flow__node") || multipleSelection) + ) { e.preventDefault(); (e as unknown as Event).stopImmediatePropagation(); if (window.getSelection()?.toString().length === 0 && lastSelection) { From 4b6cbe47fc74586d765881df6ed7521757eff800 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Fri, 28 Jun 2024 11:33:01 -0300 Subject: [PATCH 10/23] =?UTF-8?q?=F0=9F=90=9B=20(messagesPage):=20fix=20se?= =?UTF-8?q?lection=20mapping=20to=20use=20row.id=20instead=20of=20row.inde?= =?UTF-8?q?x=20=E2=9C=85=20(tests):=20add=20end-to-end=20tests=20for=20bas?= =?UTF-8?q?ic=20prompting=20and=20general=20bugs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ (tests): add end-to-end test for deleting rows from table message 🔧 (tsconfig.json): update test file name for generalBugs to shard-0 spec --- .../SettingsPage/pages/messagesPage/index.tsx | 4 +- ...c Prompting.ts => Basic Prompting.spec.ts} | 15 +++- ...gs.spec.ts => generalBugs-shard-0.spec.ts} | 0 .../end-to-end/generalBugs-shard-1.spec.ts | 89 +++++++++++++++++++ src/frontend/tsconfig.json | 2 +- 5 files changed, 102 insertions(+), 8 deletions(-) rename src/frontend/tests/end-to-end/{Basic Prompting.ts => Basic Prompting.spec.ts} (92%) rename src/frontend/tests/end-to-end/{generalBugs.spec.ts => generalBugs-shard-0.spec.ts} (100%) create mode 100644 src/frontend/tests/end-to-end/generalBugs-shard-1.spec.ts diff --git a/src/frontend/src/pages/SettingsPage/pages/messagesPage/index.tsx b/src/frontend/src/pages/SettingsPage/pages/messagesPage/index.tsx index c3172f152..c908f79a4 100644 --- a/src/frontend/src/pages/SettingsPage/pages/messagesPage/index.tsx +++ b/src/frontend/src/pages/SettingsPage/pages/messagesPage/index.tsx @@ -66,9 +66,7 @@ export default function MessagesPage() { ]} overlayNoRowsTemplate="No data available" onSelectionChanged={(event: SelectionChangedEvent) => { - setSelectedRows( - event.api.getSelectedRows().map((row) => row.index), - ); + setSelectedRows(event.api.getSelectedRows().map((row) => row.id)); }} rowSelection="multiple" suppressRowClickSelection={true} diff --git a/src/frontend/tests/end-to-end/Basic Prompting.ts b/src/frontend/tests/end-to-end/Basic Prompting.spec.ts similarity index 92% rename from src/frontend/tests/end-to-end/Basic Prompting.ts rename to src/frontend/tests/end-to-end/Basic Prompting.spec.ts index 0fdb56e41..aff45928c 100644 --- a/src/frontend/tests/end-to-end/Basic Prompting.ts +++ b/src/frontend/tests/end-to-end/Basic Prompting.spec.ts @@ -1,5 +1,4 @@ import { expect, test } from "@playwright/test"; -import path from "path"; test("Basic Prompting (Hello, World)", async ({ page }) => { if (!process?.env?.OPENAI_API_KEY) { @@ -67,10 +66,18 @@ test("Basic Prompting (Hello, World)", async ({ page }) => { .getByTestId("input-chat-playground") .last() .fill("Say hello as a pirate"); - await page.getByTestId("icon-LucideSend").last().click(); - await page.waitForTimeout(3000); - await page.getByText("Ahoy").last().isVisible(); + await page.waitForSelector('[data-testid="icon-LucideSend"]', { + timeout: 100000, + }); + + await page.getByTestId("icon-LucideSend").last().click(); + + await page.waitForSelector("text=matey", { + timeout: 100000, + }); + + await page.getByText("matey").last().isVisible(); await page.getByText("Default Session").last().click(); await page.getByText("timestamp", { exact: true }).last().isVisible(); diff --git a/src/frontend/tests/end-to-end/generalBugs.spec.ts b/src/frontend/tests/end-to-end/generalBugs-shard-0.spec.ts similarity index 100% rename from src/frontend/tests/end-to-end/generalBugs.spec.ts rename to src/frontend/tests/end-to-end/generalBugs-shard-0.spec.ts diff --git a/src/frontend/tests/end-to-end/generalBugs-shard-1.spec.ts b/src/frontend/tests/end-to-end/generalBugs-shard-1.spec.ts new file mode 100644 index 000000000..bd4c72e28 --- /dev/null +++ b/src/frontend/tests/end-to-end/generalBugs-shard-1.spec.ts @@ -0,0 +1,89 @@ +import { expect, test } from "@playwright/test"; +import * as dotenv from "dotenv"; +import path from "path"; + +test("should delete rows from table message", async ({ page }) => { + if (!process?.env?.OPENAI_API_KEY) { + //You must set the OPENAI_API_KEY on .env file to run this test + expect(false).toBe(true); + } + + await page.goto("/"); + await page.waitForTimeout(2000); + + let modalCount = 0; + try { + const modalTitleElement = await page?.getByTestId("modal-title"); + if (modalTitleElement) { + modalCount = await modalTitleElement.count(); + } + } catch (error) { + modalCount = 0; + } + + while (modalCount === 0) { + await page.getByText("New Project", { exact: true }).click(); + await page.waitForTimeout(5000); + modalCount = await page.getByTestId("modal-title")?.count(); + } + + await page.getByRole("heading", { name: "Basic Prompting" }).click(); + + await page.waitForSelector('[title="fit view"]', { + timeout: 100000, + }); + + await page.getByTitle("fit view").click(); + await page.getByTitle("zoom out").click(); + await page.getByTitle("zoom out").click(); + await page.getByTitle("zoom out").click(); + + await page + .getByTestId("popover-anchor-input-openai_api_key") + .fill(process.env.OPENAI_API_KEY ?? ""); + + await page.getByTestId("dropdown-model_name").click(); + await page.getByTestId("gpt-4o-0-option").click(); + + await page.waitForTimeout(2000); + + await page.getByTestId("button_run_chat output").click(); + await page.waitForSelector("text=built successfully", { timeout: 30000 }); + + await page.getByText("built successfully").last().click({ + timeout: 15000, + }); + + await page.getByText("Playground", { exact: true }).click(); + await page + .getByText("No input message provided.", { exact: true }) + .last() + .isVisible(); + + await page.waitForSelector('[data-testid="input-chat-playground"]', { + timeout: 100000, + }); + + await page + .getByTestId("input-chat-playground") + .last() + .fill("Say hello as a pirate"); + await page.getByTestId("icon-LucideSend").last().click(); + + await page.waitForSelector("text=matey", { + timeout: 100000, + }); + + await page.getByText("Close").last().click(); + await page.getByTestId("user-profile-settings").last().click(); + await page.getByText("Settings").last().click(); + await page.getByText("Messages").last().click(); + + const label = "Press Space to toggle all rows selection (unchecked)"; + await page.getByLabel(label).first().click(); + + await page.getByTestId("icon-Trash2").first().click(); + + await page.waitForSelector("text=No Data Available", { timeout: 30000 }); + await page.getByText("No Data Available").isVisible(); +}); diff --git a/src/frontend/tsconfig.json b/src/frontend/tsconfig.json index d713c77f7..28cdcd18b 100644 --- a/src/frontend/tsconfig.json +++ b/src/frontend/tsconfig.json @@ -34,7 +34,7 @@ "tests/end-to-end/floatComponent.spec.ts", "tests/end-to-end/flowPage.spec.ts", "tests/end-to-end/flowSettings.spec.ts", - "tests/end-to-end/generalBugs.spec.ts", + "tests/end-to-end/generalBugs-shard-0.spec.ts", "tests/end-to-end/globalVariables.spec.ts", "tests/end-to-end/group.spec.ts", "tests/end-to-end/folders.spec.ts", From 8eae1cd8a85a8fd0a831bc786c894eb56adbd830 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Fri, 28 Jun 2024 12:03:54 -0300 Subject: [PATCH 11/23] added rerun tests --- .../tests/end-to-end/chatInputOutputUser-shard-0.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontend/tests/end-to-end/chatInputOutputUser-shard-0.spec.ts b/src/frontend/tests/end-to-end/chatInputOutputUser-shard-0.spec.ts index 690a3b805..72c451c10 100644 --- a/src/frontend/tests/end-to-end/chatInputOutputUser-shard-0.spec.ts +++ b/src/frontend/tests/end-to-end/chatInputOutputUser-shard-0.spec.ts @@ -80,6 +80,10 @@ test("user must be able to send an image on chat", async ({ page }) => { { fileContent }, ); + await page.waitForSelector('[data-testid="input-chat-playground"]', { + timeout: 100000, + }); + // Locate the target element const element = await page.getByTestId("input-chat-playground"); From 224d447f6b40d7e2cf16f5ce0af06528fc2da76f Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Fri, 28 Jun 2024 12:05:48 -0300 Subject: [PATCH 12/23] chore: Add branch input parameter to Frontend Tests workflow --- .github/workflows/typescript_test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/typescript_test.yml b/.github/workflows/typescript_test.yml index 8b91001ca..13a2259b6 100644 --- a/.github/workflows/typescript_test.yml +++ b/.github/workflows/typescript_test.yml @@ -1,6 +1,12 @@ name: Run Frontend Tests on: + workflow_dispatch: + inputs: + branch: + description: "Branch to run tests on" + required: true + type: string pull_request: merge_group: @@ -19,8 +25,8 @@ jobs: strategy: fail-fast: false matrix: - shardIndex: [1, 2, 3, 4, 5, 6, 7, 8] - shardTotal: [8] + shardIndex: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + shardTotal: [10] env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} STORE_API_KEY: ${{ secrets.STORE_API_KEY }} From 17165a00d3de87912a642ae28eceeb3a4e1e1b1a Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Fri, 28 Jun 2024 14:26:10 -0300 Subject: [PATCH 13/23] remove console.log --- src/frontend/src/modals/IOModal/components/SessionView/index.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/frontend/src/modals/IOModal/components/SessionView/index.tsx b/src/frontend/src/modals/IOModal/components/SessionView/index.tsx index 70174ee72..21b64cfb1 100644 --- a/src/frontend/src/modals/IOModal/components/SessionView/index.tsx +++ b/src/frontend/src/modals/IOModal/components/SessionView/index.tsx @@ -52,7 +52,6 @@ export default function SessionView({ rows }: { rows: Array }) { ]} overlayNoRowsTemplate="No data available" onSelectionChanged={(event: SelectionChangedEvent) => { - console.log(event.api.getSelectedRows()); setSelectedRows(event.api.getSelectedRows().map((row) => row.id)); }} rowSelection="multiple" From 356905c38370f6afa8a3374ce10d8b645b4ef960 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Fri, 28 Jun 2024 15:03:32 -0300 Subject: [PATCH 14/23] test webhook --- .../components/codeTabsComponent/index.tsx | 4 +- .../end-to-end/generalBugs-shard-2.spec.ts | 56 ++++++++++++ .../end-to-end/generalBugs-shard-3.spec.ts | 89 +++++++++++++++++++ 3 files changed, 147 insertions(+), 2 deletions(-) create mode 100644 src/frontend/tests/end-to-end/generalBugs-shard-2.spec.ts create mode 100644 src/frontend/tests/end-to-end/generalBugs-shard-3.spec.ts diff --git a/src/frontend/src/components/codeTabsComponent/index.tsx b/src/frontend/src/components/codeTabsComponent/index.tsx index 4b22ac11e..c96e57264 100644 --- a/src/frontend/src/components/codeTabsComponent/index.tsx +++ b/src/frontend/src/components/codeTabsComponent/index.tsx @@ -147,7 +147,7 @@ export default function CodeTabsComponent({
)} - {Number(activeTab) < 5 && ( + {Number(activeTab) < 6 && ( <>