wisp-schema 1.19.1 → 1.20.1

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: 653807b192af36015233a6d6e9f9a601c089f05e5258b6223692b81576db1931
4
+ data.tar.gz: 90ace1a39a18711a83ac5e2526d2a374b9f1b1262f141b2ad343978ab34dd85f
5
5
  SHA512:
6
- metadata.gz: dcfdbc98b572dae49b6783e25dd6c923009b111195ab1491c5beab9b99a19a8af828ed67095eefa94248ea915e3bb91eee0845a997f7095c155f605adf8e0cef
7
- data.tar.gz: 1a811d63db37a46269f68363db4eeeb205f8439d646b9e005b963e9ede17bbd34f46d75cf588eb4184952031c4fd877e95bd25e82c4c7be39e1bf94a876fb6c8
6
+ metadata.gz: bfc7175ee3e7ec264114ea4913d84d161ea9ed870f6fbb2e9c8c57bf79633d0f293c80bf786a8229969a90f7cee0fc5626b52cbbd4d4e008ffaf4998acf206aa
7
+ data.tar.gz: 5454cef0a29c5637c36f01792f1ba4aaff7eaf707d0e4c361697874d2560c8c05322fa85fbc3923fc520e154ea70a219a893d8308b12662fd3fc3126f7783ed3
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.1"
5
+ STABLE_VERSION = "1.20.1"
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 0.2.19
21
+ version: 0.2.25
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 0.2.19
28
+ version: 0.2.25
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: semantic
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -41,33 +41,33 @@ dependencies:
41
41
  - !ruby/object:Gem::Version
42
42
  version: '1.6'
43
43
  - !ruby/object:Gem::Dependency
44
- name: rspec
44
+ name: rf-stylez
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '3.12'
49
+ version: '1.2'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: '3.12'
56
+ version: '1.2'
57
57
  - !ruby/object:Gem::Dependency
58
- name: rf-stylez
58
+ name: rspec
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: '1.0'
63
+ version: '3.13'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: '1.0'
70
+ version: '3.13'
71
71
  description: This gem contains Wisp's JSON schema definition
72
72
  email:
73
73
  executables: []
@@ -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