From 20874c95f0c6f7b08e43e80d9385c74eb6b9aa97 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 29 Apr 2024 12:04:26 -0400 Subject: [PATCH] fix: missings args --- .../Robot_Sequence.tjoy | 2 +- .../routes/test_sequencer_panel/utils/SequenceHandler.ts | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/examples/test-sequencer-robot-framework-example/Robot_Sequence.tjoy b/examples/test-sequencer-robot-framework-example/Robot_Sequence.tjoy index 4fe39879c..5a9bb1cdd 100644 --- a/examples/test-sequencer-robot-framework-example/Robot_Sequence.tjoy +++ b/examples/test-sequencer-robot-framework-example/Robot_Sequence.tjoy @@ -1 +1 @@ -{"name":"Robot_Sequence","description":"Consult the code to learn more!","elems":[{"type":"test","id":"35d63b42-c0b9-4a2e-900e-e327404a8c41","groupId":"40216fc8-785a-4610-913e-90bd54f157af","path":"TestExample.robot","testName":"TEST EXPORT","runInParallel":false,"testType":"robotframework","status":"pending","error":null,"isSavedToCloud":false,"exportToCloud":true,"createdAt":"2024-04-24T15:35:41.832Z"},{"type":"test","id":"36374991-c721-40c6-8a35-68a996fe6ed4","groupId":"d8a898b4-a012-4177-9f9a-d07c3ab5f84e","path":"TestExample.robot","testName":"TEST ASSERT","runInParallel":false,"testType":"robotframework","status":"pending","error":null,"isSavedToCloud":false,"exportToCloud":true,"createdAt":"2024-04-24T15:35:41.832Z","minValue":2,"maxValue":4.2,"unit":""}],"projectPath":"C:/Users/zzzgu/Documents/flojoy/repo/studio/examples/test-sequencer-robot-framework-example/","interpreter":{"type":"flojoy","path":null,"requirementsPath":null}} +{"name":"Robot_Sequence","description":"Consult the code to learn more!","elems":[{"type":"test","id":"83e8caff-1e57-498d-a167-1099f24e5f16","groupId":"32ae326b-0396-4bf8-a640-020ab37d5393","path":"TestExample.robot","testName":"TestExample.TEST EXPORT","runInParallel":false,"testType":"robotframework","status":"pending","error":null,"isSavedToCloud":false,"exportToCloud":true,"createdAt":"2024-04-29T15:59:13.242Z","args":["TestExample.TEST EXPORT"]},{"type":"test","id":"7bad78a8-04e6-456d-9e7a-4363d10b4699","groupId":"dfd20ed6-4052-4616-a413-f641113ed3bb","path":"TestExample.robot","testName":"TestExample.TEST ASSERT","runInParallel":false,"testType":"robotframework","status":"pending","error":null,"isSavedToCloud":false,"exportToCloud":true,"createdAt":"2024-04-29T15:59:13.242Z","minValue":1,"maxValue":3,"unit":"","args":["TestExample.TEST ASSERT"]}],"projectPath":"/Users/guillaumethibault/Documents/flojoy/repo/studio/examples/test-sequencer-robot-framework-example/","interpreter":{"type":"flojoy","path":null,"requirementsPath":null}} \ No newline at end of file diff --git a/src/renderer/routes/test_sequencer_panel/utils/SequenceHandler.ts b/src/renderer/routes/test_sequencer_panel/utils/SequenceHandler.ts index d2924237e..d0cdf8129 100644 --- a/src/renderer/routes/test_sequencer_panel/utils/SequenceHandler.ts +++ b/src/renderer/routes/test_sequencer_panel/utils/SequenceHandler.ts @@ -17,6 +17,7 @@ import { } from "@/renderer/types/test-sequencer"; import { createNewTest } from "@/renderer/hooks/useTestSequencerState"; import { err, ok, Result } from "neverthrow"; +import { toast } from "sonner"; // Exposed API export type StateManager = { @@ -235,7 +236,10 @@ async function installDeps(sequence: TestSequencerProject): Promise { const success = await window.api.poetryInstallRequirementsUserGroup( sequence.projectPath + sequence.interpreter.requirementsPath, ); - return success; + if (!success) { + toast.error("Not able to installing dependencies"); + } + return true; } async function syncSequence( @@ -285,6 +289,7 @@ async function createExportableSequenceElementsFromTestSequencerElements( minValue: elem.minValue, maxValue: elem.maxValue, unit: elem.unit, + args: elem.args, }) : { ...elem, @@ -311,6 +316,7 @@ async function createTestSequencerElementsFromSequenceElements( minValue: elem.minValue, maxValue: elem.maxValue, unit: elem.unit, + args: elem.args, }) : { ...elem,