-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): cover workflows functionalities with tests (#2099)
- Loading branch information
1 parent
e3b0380
commit 6462e2b
Showing
13 changed files
with
572 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,7 @@ | |
"env": { | ||
"USE_FIXTURES": true | ||
}, | ||
"video": false | ||
"video": false, | ||
"viewportWidth": 1600, | ||
"viewportHeight": 1200 | ||
} |
9 changes: 9 additions & 0 deletions
9
e2e/cypress/fixtures/workflows/workflow-show-details-notexists.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"error": { | ||
"code": 3150, | ||
"userMessage": "The workflow '1234c0e72966478ba61eaad737c6ce8e' could not be found. Check that the name/id is correct and try again.", | ||
"devMessage": "Unexpected error on workflow '1234c0e72966478ba61eaad737c6ce8e', possibly caused by concurrent actions.", | ||
"devReference": "https://renku-python.readthedocs.io/en/latest/service_errors.html#renku.ui.service.errors.IntermittentWorkflowNotFound", | ||
"sentry": "https://sentry.dev.renku.ch/organizations/sentry?query=123474a28e9a4d1b80c37a083f485fdc" | ||
} | ||
} |
93 changes: 93 additions & 0 deletions
93
e2e/cypress/fixtures/workflows/workflow-show-links-mappings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"result": { | ||
"id": "/plans/952c938055a041168f6e795ae33b0d22", | ||
"creators": null, | ||
"touches_existing_files": true, | ||
"keywords": [], | ||
"mappings": [ | ||
{ | ||
"description": null, | ||
"name": "model", | ||
"targets": [ | ||
{ | ||
"name": "model", | ||
"plan_id": "/plans/d1341c90f2b2464dba2bd933fc716007", | ||
"id": "/plans/d1341c90f2b2464dba2bd933fc716007/outputs/4", | ||
"type": "Output" | ||
} | ||
], | ||
"default_value": "None", | ||
"plan_id": "/plans/952c938055a041168f6e795ae33b0d22", | ||
"type": "Mapping" | ||
}, | ||
{ | ||
"description": null, | ||
"name": "gamma", | ||
"targets": [ | ||
{ | ||
"name": "gamma", | ||
"plan_id": "/plans/d1341c90f2b2464dba2bd933fc716007", | ||
"id": "/plans/d1341c90f2b2464dba2bd933fc716007/parameters/5", | ||
"type": "Parameter" | ||
} | ||
], | ||
"default_value": "None", | ||
"plan_id": "/plans/952c938055a041168f6e795ae33b0d22", | ||
"type": "Mapping" | ||
}, | ||
{ | ||
"description": null, | ||
"name": "c", | ||
"targets": [ | ||
{ | ||
"name": "c", | ||
"plan_id": "/plans/d1341c90f2b2464dba2bd933fc716007", | ||
"id": "/plans/d1341c90f2b2464dba2bd933fc716007/parameters/6", | ||
"type": "Parameter" | ||
} | ||
], | ||
"default_value": "None", | ||
"plan_id": "/plans/952c938055a041168f6e795ae33b0d22", | ||
"type": "Mapping" | ||
} | ||
], | ||
"duration": 10, | ||
"description": null, | ||
"plans": [ | ||
{ | ||
"name": "train", | ||
"id": "/plans/d1341c90f2b2464dba2bd933fc716007" | ||
}, | ||
{ | ||
"name": "evaluation", | ||
"id": "/plans/59d7c0e72966478ba61eaad737c6ce8e" | ||
} | ||
], | ||
"links": [ | ||
{ | ||
"id": "/plans/952c938055a041168f6e795ae33b0d22/links/5a8cb983-911c-4e9c-ba2f-5c7cdf1a18f3", | ||
"source": { | ||
"name": "model", | ||
"plan_id": "/plans/d1341c90f2b2464dba2bd933fc716007", | ||
"id": "/plans/d1341c90f2b2464dba2bd933fc716007/outputs/4", | ||
"type": "Output" | ||
}, | ||
"sinks": [ | ||
{ | ||
"name": "model-4", | ||
"plan_id": "/plans/59d7c0e72966478ba61eaad737c6ce8e", | ||
"id": "/plans/59d7c0e72966478ba61eaad737c6ce8e/inputs/4", | ||
"type": "Input" | ||
} | ||
], | ||
"plan_id": "/plans/952c938055a041168f6e795ae33b0d22", | ||
"type": "Link" | ||
} | ||
], | ||
"name": "pipeline", | ||
"latest": "/plans/952c938055a041168f6e795ae33b0d22", | ||
"created": "2022-07-19T16:25:27+02:00", | ||
"annotations": null, | ||
"type": "CompositePlan" | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
e2e/cypress/fixtures/workflows/workflow-show-outdated.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"result": { | ||
"inputs": [ | ||
{ | ||
"position": 1, | ||
"default_value": "m", | ||
"prefix": null, | ||
"exists": true, | ||
"name": "input-1", | ||
"encoding_format": "application/octet-stream", | ||
"description": null, | ||
"plan_id": "/plans/998ff6b7853d4889bbec55dfb31b4ba6", | ||
"type": "Input", | ||
"mapped_to": null | ||
}, | ||
{ | ||
"position": 2, | ||
"default_value": "n", | ||
"prefix": null, | ||
"exists": true, | ||
"name": "input-2", | ||
"encoding_format": "application/octet-stream", | ||
"description": null, | ||
"plan_id": "/plans/998ff6b7853d4889bbec55dfb31b4ba6", | ||
"type": "Input", | ||
"mapped_to": null | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"create_folder": true, | ||
"position": 3, | ||
"default_value": "x", | ||
"prefix": null, | ||
"exists": true, | ||
"name": "output-3", | ||
"encoding_format": "application/octet-stream", | ||
"description": null, | ||
"plan_id": "/plans/998ff6b7853d4889bbec55dfb31b4ba6", | ||
"type": "Output", | ||
"mapped_to": "stdout" | ||
} | ||
], | ||
"type": "Plan", | ||
"id": "/plans/998ff6b7853d4889bbec55dfb31b4ba6", | ||
"creators": [ | ||
{ | ||
"name": "Ralf Grubenmann", | ||
"affiliation": null, | ||
"email": "ralf.grubenmann@gmail.com" | ||
} | ||
], | ||
"full_command": "cat m n > x", | ||
"success_codes": [], | ||
"latest": "/plans/3398f0a970774e2d82b1791190de85d0", | ||
"touches_existing_files": true, | ||
"keywords": [], | ||
"last_executed": "2022-09-19T12:31:05+02:00", | ||
"annotations": null, | ||
"description": null, | ||
"parameters": [], | ||
"duration": 0, | ||
"name": "cat-m-n-b38fc", | ||
"command": "cat", | ||
"created": "2022-09-19T12:31:05+02:00", | ||
"number_of_executions": 1 | ||
} | ||
} |
Oops, something went wrong.