Skip to content

Commit

Permalink
fix: missings args (#1178)
Browse files Browse the repository at this point in the history
  • Loading branch information
LatentDream committed Apr 29, 2024
1 parent 2e0a104 commit 09856c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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}}
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -235,7 +236,10 @@ async function installDeps(sequence: TestSequencerProject): Promise<boolean> {
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(
Expand Down Expand Up @@ -285,6 +289,7 @@ async function createExportableSequenceElementsFromTestSequencerElements(
minValue: elem.minValue,
maxValue: elem.maxValue,
unit: elem.unit,
args: elem.args,
})
: {
...elem,
Expand All @@ -311,6 +316,7 @@ async function createTestSequencerElementsFromSequenceElements(
minValue: elem.minValue,
maxValue: elem.maxValue,
unit: elem.unit,
args: elem.args,
})
: {
...elem,
Expand Down

0 comments on commit 09856c8

Please sign in to comment.