2025-08-28 12:20:56 +00:00
|
|
|
export const workflowsText = {
|
|
|
|
|
runjs: "runjs1",
|
2025-09-09 12:18:12 +00:00
|
|
|
workflowNode: "workflows1",
|
|
|
|
|
postgresqlNodeName: "postgresql1",
|
|
|
|
|
restapiNodeName: "restapi1",
|
|
|
|
|
harperdbNodeName: "harperdb1",
|
2025-08-28 12:20:56 +00:00
|
|
|
runjsInputField: "runjs-input-field",
|
|
|
|
|
pgsqlQueryInputField: "query-input-field",
|
|
|
|
|
harperdbInputField: "sql-query-input-field",
|
|
|
|
|
restapiUrlInputField: "url-input-field",
|
|
|
|
|
workflowNameInputField: "workflow-name-input",
|
2025-09-04 12:49:05 +00:00
|
|
|
exportWFOption: "export-workflow",
|
2025-09-09 12:18:12 +00:00
|
|
|
jsonKeyPlaceholder: "key",
|
|
|
|
|
jsonValuePlaceholder: "your value",
|
|
|
|
|
workflowRunhelperText: "A few seconds ago",
|
2025-09-04 12:49:05 +00:00
|
|
|
responseNodeKey: "data",
|
|
|
|
|
responseNodeLabel: "Response",
|
|
|
|
|
responseNodeName: "response1",
|
2025-09-09 12:18:12 +00:00
|
|
|
runjsNodeLabel: "Run JavaScript code",
|
|
|
|
|
workflowNodeLabel: "Run Workflow",
|
|
|
|
|
runjsNodeCode: "return startTrigger.params",
|
|
|
|
|
responseNodeQuery: "return runjs1.data",
|
|
|
|
|
runjsNodeQueryForLargedataSet:
|
2025-09-22 06:41:19 +00:00
|
|
|
"const bigArray = new Array(30000).fill(null).map((_, i) => 'test' + (i + 1)); const result = new Object(); result.data = bigArray; return result;",
|
2025-09-04 12:49:05 +00:00
|
|
|
|
2025-09-09 12:18:12 +00:00
|
|
|
responseNodeExpectedValueTextForLargeDataset: "test1",
|
|
|
|
|
workflowResponseNodeQuery: "return workflows1.data",
|
|
|
|
|
responseNodeExpectedValueText: "your value",
|
|
|
|
|
longStringJsonText:
|
|
|
|
|
"ToolJet is an AI-native open-source low-code platform for building and deploying internal tools and business applications with minimal effort",
|
|
|
|
|
postgresNodeQuery: `SELECT table_name
|
2025-09-04 12:49:05 +00:00
|
|
|
FROM information_schema.tables
|
|
|
|
|
WHERE table_schema = 'public'
|
|
|
|
|
AND table_type = 'BASE TABLE';`,
|
2025-09-09 12:18:12 +00:00
|
|
|
postgresResponseNodeQuery: "return postgresql1.data",
|
2025-10-14 12:39:55 +00:00
|
|
|
postgresExpectedValue: "server_side_pagination",
|
|
|
|
|
|
2025-09-04 12:49:05 +00:00
|
|
|
restApiUrl: "http://9.234.17.31:8000/delay/10s",
|
2025-09-09 12:18:12 +00:00
|
|
|
restApiResponseNodeQuery: "return restapi1.data",
|
2025-09-04 12:49:05 +00:00
|
|
|
restApiExpectedValue: "<!DOCTYPE html>",
|
|
|
|
|
|
2025-09-09 12:18:12 +00:00
|
|
|
harperDbNodeQuery: "SELECT * FROM tooljet_harper.tooljet_table;",
|
|
|
|
|
harperDbNode: /sql/i,
|
|
|
|
|
harperDbResponseNodeQuery: "return harperdb1.data",
|
2025-09-04 12:49:05 +00:00
|
|
|
harperDbExpectedValue: "Test Record 3",
|
2025-09-09 12:18:12 +00:00
|
|
|
harperDbPluginName: "HarperDB",
|
|
|
|
|
|
2025-09-04 12:49:05 +00:00
|
|
|
runjsCodeForWebhooks: 'return "Verifying webhooks response"',
|
|
|
|
|
runjsExpectedValueForWebhooks: "Verifying webhooks response",
|
2025-10-03 10:26:38 +00:00
|
|
|
expectedStatusCodeText: 200,
|
2025-09-09 12:18:12 +00:00
|
|
|
exportFixturePath: "cypress/fixtures/exportedApp.json",
|
|
|
|
|
workflowLabel: "Workflow",
|
|
|
|
|
};
|