wisp-schema 1.19.1 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/version.rb +2 -2
- data/lib/wisp-schema.rb +1 -0
- data/nouns.json +15 -1
- data/stable/actions/download_file.json +38 -0
- data/stable/actions/file_reference.json +14 -0
- data/stable/verbs.json +1 -0
- data/wisp.json +51 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df4d133d7cd9200d823506d0f603d5b298abc7e894363c7891a5933d6b565739
|
|
4
|
+
data.tar.gz: c6249781381a505c75530e8d311c92adab6c3c83414c3a9d523df8f682fd42be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 715adf0e921b143588f5c5304f2e13f5cfab556d2a7604d52cccc27ec42ab4143150195a3a7dc44b7ebd0e4733321e31aea127039bd2a92960a01d511af98bec
|
|
7
|
+
data.tar.gz: 848271b0d6af6a5b02a678487fbcfff1a991e5abe6929273795af8d7a9e61fa121b6c6fe78751a1b5df583d9ce426cbe6864c9ee4df68e500a276bacc8abb15c
|
data/lib/version.rb
CHANGED
data/lib/wisp-schema.rb
CHANGED
data/nouns.json
CHANGED
|
@@ -122,6 +122,19 @@
|
|
|
122
122
|
"additionalProperties": false,
|
|
123
123
|
"required": ["type", "id"]
|
|
124
124
|
},
|
|
125
|
+
"file_reference": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"title": "File Reference",
|
|
128
|
+
"description": "A TestFile stored in the database",
|
|
129
|
+
"properties": {
|
|
130
|
+
"type": {
|
|
131
|
+
"enum": ["file_reference"]
|
|
132
|
+
},
|
|
133
|
+
"id": {"title": "File ID", "type": "integer"}
|
|
134
|
+
},
|
|
135
|
+
"additionalProperties": false,
|
|
136
|
+
"required": ["type", "id"]
|
|
137
|
+
},
|
|
125
138
|
"match_mode": { "enum": ["semantic", "strict", "ai_search", "dom_selector"] },
|
|
126
139
|
"legacy_match_mode": { "enum": ["pixel", "pixel_and_ocr"] }
|
|
127
140
|
},
|
|
@@ -135,7 +148,8 @@
|
|
|
135
148
|
"noun": {
|
|
136
149
|
"oneOf": [
|
|
137
150
|
{"$ref": "#/definitions/ui_element"},
|
|
138
|
-
{"$ref": "#/definitions/ui_element_reference"}
|
|
151
|
+
{"$ref": "#/definitions/ui_element_reference"},
|
|
152
|
+
{"$ref": "#/definitions/file_reference"}
|
|
139
153
|
]
|
|
140
154
|
}
|
|
141
155
|
},
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"action_type": "action",
|
|
5
|
+
"title": "Download File",
|
|
6
|
+
"description": "Downloads the file to the VM",
|
|
7
|
+
"properties": {
|
|
8
|
+
"action": {
|
|
9
|
+
"enum": ["download_file"]
|
|
10
|
+
},
|
|
11
|
+
"id": { "title": "Action ID", "type": "integer" },
|
|
12
|
+
"uniform_id": { "title": "Preserved Action ID", "type": "string" },
|
|
13
|
+
"job_step_id": {
|
|
14
|
+
"title": "The id of the action's related job step",
|
|
15
|
+
"type": "integer"
|
|
16
|
+
},
|
|
17
|
+
"delay_after": {"title": "Delay after in seconds", "type": "integer"},
|
|
18
|
+
"object": {
|
|
19
|
+
"title": "Object",
|
|
20
|
+
"$ref": "file_reference.json"
|
|
21
|
+
},
|
|
22
|
+
"destination_name": {
|
|
23
|
+
"title": "The name the file will be downloaded as (basename + extension)",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"modifier": {
|
|
27
|
+
"title": "Action to be executed after download",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": ["open_file", "open_folder", "do_nothing"]
|
|
30
|
+
},
|
|
31
|
+
"version": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"title": "Version"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["action", "object", "destination_name", "modifier", "version"]
|
|
38
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "File Reference",
|
|
5
|
+
"description": "A TestFile stored in the database",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"enum": ["file_reference"]
|
|
9
|
+
},
|
|
10
|
+
"id": {"title": "File ID", "type": "integer"}
|
|
11
|
+
},
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"required": ["type", "id"]
|
|
14
|
+
}
|
data/stable/verbs.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
{"$ref": "actions/tester_instruction.json"},
|
|
26
26
|
{"$ref": "actions/observe.json"},
|
|
27
27
|
{"$ref": "actions/store_value.json"},
|
|
28
|
+
{"$ref": "actions/download_file.json"},
|
|
28
29
|
{"$ref": "actions/tester_confirmation.json"},
|
|
29
30
|
{"$ref": "embeddings/embedded_test.json"}
|
|
30
31
|
]
|
data/wisp.json
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
"title": "Wisp Noun",
|
|
6
6
|
"oneOf": [
|
|
7
7
|
{"$ref": "#/definitions/ui_element"},
|
|
8
|
-
{"$ref": "#/definitions/ui_element_reference"}
|
|
8
|
+
{"$ref": "#/definitions/ui_element_reference"},
|
|
9
|
+
{"$ref": "#/definitions/file_reference"}
|
|
9
10
|
]
|
|
10
11
|
},
|
|
11
12
|
"ui_element": {
|
|
@@ -131,6 +132,19 @@
|
|
|
131
132
|
"additionalProperties": false,
|
|
132
133
|
"required": ["type", "id"]
|
|
133
134
|
},
|
|
135
|
+
"file_reference": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"title": "File Reference",
|
|
138
|
+
"description": "A TestFile stored in the database",
|
|
139
|
+
"properties": {
|
|
140
|
+
"type": {
|
|
141
|
+
"enum": ["file_reference"]
|
|
142
|
+
},
|
|
143
|
+
"id": {"title": "File ID", "type": "integer"}
|
|
144
|
+
},
|
|
145
|
+
"additionalProperties": false,
|
|
146
|
+
"required": ["type", "id"]
|
|
147
|
+
},
|
|
134
148
|
"verb": {
|
|
135
149
|
"title": "Wisp Verb",
|
|
136
150
|
"oneOf": [
|
|
@@ -155,6 +169,7 @@
|
|
|
155
169
|
{"$ref": "#/definitions/embedded_test"},
|
|
156
170
|
{"$ref": "#/definitions/observe"},
|
|
157
171
|
{"$ref": "#/definitions/store_value"},
|
|
172
|
+
{"$ref": "#/definitions/download_file"},
|
|
158
173
|
{"$ref": "#/definitions/tester_confirmation"}
|
|
159
174
|
]
|
|
160
175
|
},
|
|
@@ -782,6 +797,41 @@
|
|
|
782
797
|
"additionalProperties": false,
|
|
783
798
|
"required": ["action", "object", "variable_name"]
|
|
784
799
|
},
|
|
800
|
+
"download_file": {
|
|
801
|
+
"type": "object",
|
|
802
|
+
"action_type": "action",
|
|
803
|
+
"title": "Download File",
|
|
804
|
+
"description": "Downloads the file to the VM",
|
|
805
|
+
"properties": {
|
|
806
|
+
"action": {
|
|
807
|
+
"enum": ["download_file"]
|
|
808
|
+
},
|
|
809
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
|
810
|
+
"id": {"title": "Action ID", "type": "integer"},
|
|
811
|
+
"uniform_id": { "title": "Preserved Action ID", "type": "string" },
|
|
812
|
+
"job_step_id": {
|
|
813
|
+
"title": "The id of the action's related job step",
|
|
814
|
+
"type": "integer"
|
|
815
|
+
},
|
|
816
|
+
"delay_after": {"title": "Delay after in seconds", "type": "integer"},
|
|
817
|
+
"object": {
|
|
818
|
+
"title": "Object",
|
|
819
|
+
"$ref": "#/definitions/noun",
|
|
820
|
+
"type": "file_reference"
|
|
821
|
+
},
|
|
822
|
+
"destination_name": {
|
|
823
|
+
"title": "The name the file will be downloaded as (basename + extension)",
|
|
824
|
+
"type": "string"
|
|
825
|
+
},
|
|
826
|
+
"modifier": {
|
|
827
|
+
"title": "Action to be executed after download",
|
|
828
|
+
"type": "string",
|
|
829
|
+
"enum": ["open_file", "open_folder", "do_nothing"]
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
"additionalProperties": false,
|
|
833
|
+
"required": ["action", "object", "destination_name", "modifier"]
|
|
834
|
+
},
|
|
785
835
|
"tester_confirmation": {
|
|
786
836
|
"type": "object",
|
|
787
837
|
"action_type": "assertion",
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wisp-schema
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.20.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jan Grodowski
|
|
@@ -83,7 +83,9 @@ files:
|
|
|
83
83
|
- stable/actions/comment.json
|
|
84
84
|
- stable/actions/conditional_observe.json
|
|
85
85
|
- stable/actions/double_click.json
|
|
86
|
+
- stable/actions/download_file.json
|
|
86
87
|
- stable/actions/drag_and_drop.json
|
|
88
|
+
- stable/actions/file_reference.json
|
|
87
89
|
- stable/actions/fill.json
|
|
88
90
|
- stable/actions/generate_steps.json
|
|
89
91
|
- stable/actions/hover.json
|