wisp-schema 1.0.4 → 1.0.5

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/canary-wisp.json +38 -13
  3. data/lib/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d4abc3b624c92af7aadcbf233621d7dd14bd9f7c6be7a52be60aeb99ee84ba7
4
- data.tar.gz: 3b2e61a24d7f9d5325d1147a59c95d8ab74de977d041a6b9699ffbcc1aa97640
3
+ metadata.gz: 3ed50dbe0ec3a44397da043b21fe71f5dfd5b0fcba8e6251de3c43f6639a19cc
4
+ data.tar.gz: dc0b17ca881205e824e17e189b0a135481dd6159f282bb007886c5c16b4ead6b
5
5
  SHA512:
6
- metadata.gz: 3e476aa00de99f780fcffd78bea1c1a40cb2ad48ce69c93ae76bacaaadc32d24a3bc515c9112e78f53a781faa03edef9def86e2f347beb31fa1bd87af3bf23bb
7
- data.tar.gz: c271a6d930237e77469b66eedd46fbb2f1e7fa32e3b8a7b9fc6ddcb72703248ac4bcdd18ea1a47e7e9426cac6ca56bd5cc7ea47792d11099db4d8d8b79d32d0f
6
+ metadata.gz: 962552e078646e46994344e9b42a266dd60b55b08f68a01f10eb582a2162ab78b4e0aef4fe71ed1c9ad461dfda80a63737171c12d3afe480aed3b6ec4cc07a84
7
+ data.tar.gz: 0c20d06ca184ce6756494f1b3dc80c4d838dffda4a06be87a89d35c783501b4a871f3c2d0801363f824e0b6ef161e3788642d1dd6a709ce9a333b10804498520
@@ -83,6 +83,7 @@
83
83
  },
84
84
  "click": {
85
85
  "type": "object",
86
+ "action_type": "action",
86
87
  "title": "Click",
87
88
  "description": "Clicks on the UI element",
88
89
  "properties": {
@@ -92,7 +93,8 @@
92
93
  "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
93
94
  "target": {
94
95
  "title": "Target",
95
- "$ref": "#/definitions/noun"
96
+ "$ref": "#/definitions/noun",
97
+ "type": "ui_element_reference"
96
98
  },
97
99
  "button": {"title": "Mouse Button", "type": "string", "enum": ["left", "middle", "right"]},
98
100
  "hold": {"title": "And Hold", "type": "boolean"},
@@ -103,6 +105,7 @@
103
105
  },
104
106
  "double_click": {
105
107
  "type": "object",
108
+ "action_type": "action",
106
109
  "title": "Double Click",
107
110
  "description": "Double-clicks on the UI element",
108
111
  "properties": {
@@ -112,7 +115,8 @@
112
115
  "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
113
116
  "target": {
114
117
  "title": "Target",
115
- "$ref": "#/definitions/noun"
118
+ "$ref": "#/definitions/noun",
119
+ "type": "ui_element_reference"
116
120
  }
117
121
  },
118
122
  "additionalProperties": false,
@@ -120,6 +124,7 @@
120
124
  },
121
125
  "fill": {
122
126
  "type": "object",
127
+ "action_type": "action",
123
128
  "title": "Fill",
124
129
  "description": "Fills the text field with specified content",
125
130
  "properties": {
@@ -129,7 +134,8 @@
129
134
  "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
130
135
  "target": {
131
136
  "title": "Target",
132
- "$ref": "#/definitions/noun"
137
+ "$ref": "#/definitions/noun",
138
+ "type": "ui_element_reference"
133
139
  },
134
140
  "text": {"title": "Text", "type": "string"}
135
141
  },
@@ -138,6 +144,7 @@
138
144
  },
139
145
  "type": {
140
146
  "type": "object",
147
+ "action_type": "action",
141
148
  "title": "Type",
142
149
  "description": "Types in specified text",
143
150
  "properties": {
@@ -152,6 +159,7 @@
152
159
  },
153
160
  "send_key": {
154
161
  "type": "object",
162
+ "action_type": "action",
155
163
  "title": "Press Key",
156
164
  "description": "Press specified key or key combination.",
157
165
  "properties": {
@@ -167,6 +175,7 @@
167
175
  },
168
176
  "hover": {
169
177
  "type": "object",
178
+ "action_type": "action",
170
179
  "title": "Hover",
171
180
  "description": "Hovers over specified element",
172
181
  "properties": {
@@ -176,7 +185,8 @@
176
185
  "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
177
186
  "target": {
178
187
  "title": "Target",
179
- "$ref": "#/definitions/noun"
188
+ "$ref": "#/definitions/noun",
189
+ "type": "ui_element_reference"
180
190
  }
181
191
  },
182
192
  "additionalProperties": false,
@@ -184,6 +194,7 @@
184
194
  },
185
195
  "select": {
186
196
  "type": "object",
197
+ "action_type": "action",
187
198
  "title": "Select",
188
199
  "description": "Selects specified item from the dropdown",
189
200
  "properties": {
@@ -193,7 +204,8 @@
193
204
  "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
194
205
  "target": {
195
206
  "title": "Target",
196
- "$ref": "#/definitions/noun"
207
+ "$ref": "#/definitions/noun",
208
+ "type": "ui_element_reference"
197
209
  },
198
210
  "option": {
199
211
  "title": "Option",
@@ -205,6 +217,7 @@
205
217
  },
206
218
  "refresh": {
207
219
  "type": "object",
220
+ "action_type": "action",
208
221
  "title": "Refresh",
209
222
  "description": "Refreshes the webpage",
210
223
  "properties": {
@@ -218,6 +231,7 @@
218
231
  },
219
232
  "navigate": {
220
233
  "type": "object",
234
+ "action_type": "action",
221
235
  "title": "Navigate",
222
236
  "description": "Navigates to specified URL",
223
237
  "properties": {
@@ -233,6 +247,7 @@
233
247
  },
234
248
  "close_tab": {
235
249
  "type": "object",
250
+ "action_type": "action",
236
251
  "title": "Close Tab",
237
252
  "description": "Closes current browser tab",
238
253
  "properties": {
@@ -246,6 +261,7 @@
246
261
  },
247
262
  "scroll": {
248
263
  "type": "object",
264
+ "action_type": "action",
249
265
  "title": "Scroll",
250
266
  "description": "Scrolls the page into specified direction until target is reached",
251
267
  "properties": {
@@ -256,7 +272,8 @@
256
272
  "direction": {"title": "Direction", "type": "string", "enum": ["up", "down", "left", "right"]},
257
273
  "target": {
258
274
  "title": "Target",
259
- "$ref": "#/definitions/noun"
275
+ "$ref": "#/definitions/noun",
276
+ "type": "ui_element_reference"
260
277
  }
261
278
  },
262
279
  "additionalProperties": false,
@@ -264,6 +281,7 @@
264
281
  },
265
282
  "wait": {
266
283
  "type": "object",
284
+ "action_type": "action",
267
285
  "title": "Wait",
268
286
  "description": "Waits for a number of seconds",
269
287
  "properties": {
@@ -278,6 +296,7 @@
278
296
  },
279
297
  "drag_and_drop": {
280
298
  "type": "object",
299
+ "action_type": "action",
281
300
  "title": "Drag and drop",
282
301
  "description": "Drag and drop",
283
302
  "properties": {
@@ -291,7 +310,8 @@
291
310
  },
292
311
  "target": {
293
312
  "title": "Target",
294
- "$ref": "#/definitions/noun"
313
+ "$ref": "#/definitions/noun",
314
+ "type": "ui_element_reference"
295
315
  }
296
316
  },
297
317
  "additionalProperties": false,
@@ -299,6 +319,7 @@
299
319
  },
300
320
  "embedded_test": {
301
321
  "type": "object",
322
+ "action_type": "embedded_test",
302
323
  "title": "Embedded Test",
303
324
  "description": "Embeds a Test",
304
325
  "properties": {
@@ -315,6 +336,7 @@
315
336
  },
316
337
  "tester_instruction": {
317
338
  "type": "object",
339
+ "action_type": "action",
318
340
  "title": "Tester Instruction",
319
341
  "description": "An action for a human to complete",
320
342
  "properties": {
@@ -329,10 +351,11 @@
329
351
  },
330
352
  "observe": {
331
353
  "type": "object",
354
+ "action_type": "assertion",
332
355
  "title": "Observe",
333
356
  "description": "Checks if element of the UI is visible or not",
334
357
  "properties": {
335
- "assertion": {
358
+ "action": {
336
359
  "enum": ["observe"]
337
360
  },
338
361
  "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
@@ -347,35 +370,37 @@
347
370
  }
348
371
  },
349
372
  "additionalProperties": false,
350
- "required": ["assertion", "object", "visibility"]
373
+ "required": ["action", "object", "visibility"]
351
374
  },
352
375
  "loaded": {
353
376
  "type": "object",
377
+ "action_type": "assertion",
354
378
  "title": "Loaded",
355
379
  "description": "Checks if specified page has loaded",
356
380
  "properties": {
357
- "assertion": {
381
+ "action": {
358
382
  "enum": ["loaded"]
359
383
  },
360
384
  "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
361
385
  "page": {"title": "Page", "type": "string"}
362
386
  },
363
387
  "additionalProperties": false,
364
- "required": ["assertion", "page"]
388
+ "required": ["action", "page"]
365
389
  },
366
390
  "tester_confirmation": {
367
391
  "type": "object",
392
+ "action_type": "assertion",
368
393
  "title": "Tester Confirmation",
369
394
  "description": "Ask a question to confirm a behavior",
370
395
  "properties": {
371
- "assertion": {
396
+ "action": {
372
397
  "enum": ["tester_confirmation"]
373
398
  },
374
399
  "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
375
400
  "confirmation": {"title": "confirmation", "type": "string"}
376
401
  },
377
402
  "additionalProperties": false,
378
- "required": ["assertion", "confirmation"]
403
+ "required": ["action", "confirmation"]
379
404
  }
380
405
  },
381
406
  "type": "object",
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wisp
4
- VERSION = '1.0.4'
4
+ VERSION = '1.0.5'
5
5
  STABLE_VERSION = '0.18.1'
6
6
  end
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.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski