Skip to content

Commit

Permalink
Merge pull request #55 from Mastersam07/action
Browse files Browse the repository at this point in the history
Add support for the Action command
  • Loading branch information
Fishbowler authored Feb 4, 2025
2 parents 910136a + e862102 commit 75cb564
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
24 changes: 24 additions & 0 deletions schema/schema.v0.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/$defs/Commands/Action"
},
{
"$ref": "#/$defs/Commands/AddMedia"
},
Expand Down Expand Up @@ -347,6 +350,27 @@
]
},
"Commands": {
"Action": {
"title": "action",
"type": "object",
"additionalProperties": false,
"required": [
"action"
],
"properties": {
"action": {
"type": "string",
"description": "The action to be performed",
"enum": [
"back",
"clearKeychain",
"hideKeyboard",
"pasteText",
"scroll"
]
}
}
},
"AddMedia": {
"title": "addMedia",
"type": "object",
Expand Down
6 changes: 6 additions & 0 deletions tests/examples/extreme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ onFlowComplete:
- runFlow: teardown.yaml
- runScript: teardown.js
---
- action: 'back'
- action: 'hideKeyboard'
- action: 'scroll'
- action: 'clearKeychain'
- action: 'pasteText'

- addMedia:
- "./assets/foo.png"
- "./assets/foo.mp4"
Expand Down

0 comments on commit 75cb564

Please sign in to comment.