wisp-schema 1.19.1 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ee3d80483890bbbf8b4e8291ec8fea256a43f12298fe838be3a50cd76c66530
4
- data.tar.gz: b8e1695a06e8069db93dd3dbd3b4efb28ede70cc6128b435fa7e936c6e7d3b33
3
+ metadata.gz: df4d133d7cd9200d823506d0f603d5b298abc7e894363c7891a5933d6b565739
4
+ data.tar.gz: c6249781381a505c75530e8d311c92adab6c3c83414c3a9d523df8f682fd42be
5
5
  SHA512:
6
- metadata.gz: dcfdbc98b572dae49b6783e25dd6c923009b111195ab1491c5beab9b99a19a8af828ed67095eefa94248ea915e3bb91eee0845a997f7095c155f605adf8e0cef
7
- data.tar.gz: 1a811d63db37a46269f68363db4eeeb205f8439d646b9e005b963e9ede17bbd34f46d75cf588eb4184952031c4fd877e95bd25e82c4c7be39e1bf94a876fb6c8
6
+ metadata.gz: 715adf0e921b143588f5c5304f2e13f5cfab556d2a7604d52cccc27ec42ab4143150195a3a7dc44b7ebd0e4733321e31aea127039bd2a92960a01d511af98bec
7
+ data.tar.gz: 848271b0d6af6a5b02a678487fbcfff1a991e5abe6929273795af8d7a9e61fa121b6c6fe78751a1b5df583d9ce426cbe6864c9ee4df68e500a276bacc8abb15c
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wisp
4
- VERSION = "1.19.1"
5
- STABLE_VERSION = "1.19.1"
4
+ VERSION = "1.20.0"
5
+ STABLE_VERSION = "1.20.0"
6
6
  end
data/lib/wisp-schema.rb CHANGED
@@ -20,6 +20,7 @@ module Wisp
20
20
  "comment",
21
21
  "conditional_observe",
22
22
  "double_click",
23
+ "download_file",
23
24
  "drag_and_drop",
24
25
  "fill",
25
26
  "generate_steps",
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.19.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