wisp-schema 0.19.1 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/canary-wisp.json +61 -158
  3. data/lib/version.rb +6 -0
  4. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5a7f8e544ab5bf31e4b34c5af1af937b85bd805d7fadfe30f26d0a46ce0eb03
4
- data.tar.gz: b96f5b664e0d3d6fd37b18f477fe94bef8fbae77681072364458edaf5ee2b6f6
3
+ metadata.gz: 2d4abc3b624c92af7aadcbf233621d7dd14bd9f7c6be7a52be60aeb99ee84ba7
4
+ data.tar.gz: 3b2e61a24d7f9d5325d1147a59c95d8ab74de977d041a6b9699ffbcc1aa97640
5
5
  SHA512:
6
- metadata.gz: 289a662106f9ca0dd837bbb944da20c08d9b999425e31b34a3fc13020009f08c59da41490dddcf97d70b5f41815f78efaf9bde9bb5f4c909c912dfed727a0797
7
- data.tar.gz: bcaf5486437ef4f25cb04fc3463fb466ff6f80bdd6a8fab38c81764ca94be149ffa5b17799804e53c84c402487993a29250214072e7c2c1a05279b945e3ba355
6
+ metadata.gz: 3e476aa00de99f780fcffd78bea1c1a40cb2ad48ce69c93ae76bacaaadc32d24a3bc515c9112e78f53a781faa03edef9def86e2f347beb31fa1bd87af3bf23bb
7
+ data.tar.gz: c271a6d930237e77469b66eedd46fbb2f1e7fa32e3b8a7b9fc6ddcb72703248ac4bcdd18ea1a47e7e9426cac6ca56bd5cc7ea47792d11099db4d8d8b79d32d0f
@@ -67,24 +67,18 @@
67
67
  {"$ref": "#/definitions/type"},
68
68
  {"$ref": "#/definitions/send_key"},
69
69
  {"$ref": "#/definitions/hover"},
70
- {"$ref": "#/definitions/dropdown_select"},
71
- {"$ref": "#/definitions/checkbox_check"},
72
- {"$ref": "#/definitions/checkbox_uncheck"},
70
+ {"$ref": "#/definitions/select"},
73
71
  {"$ref": "#/definitions/refresh"},
74
72
  {"$ref": "#/definitions/navigate"},
75
- {"$ref": "#/definitions/navigate_new_tab"},
76
- {"$ref": "#/definitions/navigate_incognito_tab"},
77
73
  {"$ref": "#/definitions/close_tab"},
78
74
  {"$ref": "#/definitions/scroll"},
79
- {"$ref": "#/definitions/sleep"},
75
+ {"$ref": "#/definitions/wait"},
80
76
  {"$ref": "#/definitions/drag_and_drop"},
81
- {"$ref": "#/definitions/click_and_hold"},
82
- {"$ref": "#/definitions/plain_language"},
83
- {"$ref": "#/definitions/custom_action"},
84
- {"$ref": "#/definitions/see"},
85
- {"$ref": "#/definitions/disappear"},
77
+ {"$ref": "#/definitions/tester_instruction"},
78
+ {"$ref": "#/definitions/embedded_test"},
79
+ {"$ref": "#/definitions/observe"},
86
80
  {"$ref": "#/definitions/loaded"},
87
- {"$ref": "#/definitions/plain_language_assertion"}
81
+ {"$ref": "#/definitions/tester_confirmation"}
88
82
  ]
89
83
  },
90
84
  "click": {
@@ -95,15 +89,17 @@
95
89
  "action": {
96
90
  "enum": ["click"]
97
91
  },
98
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
92
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
99
93
  "target": {
100
94
  "title": "Target",
101
95
  "$ref": "#/definitions/noun"
102
96
  },
103
- "button": {"title": "Mouse Button", "type": "string", "enum": ["left", "middle", "right"]}
97
+ "button": {"title": "Mouse Button", "type": "string", "enum": ["left", "middle", "right"]},
98
+ "hold": {"title": "And Hold", "type": "boolean"},
99
+ "hold_seconds": {"title": "Hold seconds", "type": "integer"}
104
100
  },
105
101
  "additionalProperties": false,
106
- "required": ["action", "target"]
102
+ "required": ["action", "target", "button", "hold"]
107
103
  },
108
104
  "double_click": {
109
105
  "type": "object",
@@ -113,7 +109,7 @@
113
109
  "action": {
114
110
  "enum": ["double_click"]
115
111
  },
116
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
112
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
117
113
  "target": {
118
114
  "title": "Target",
119
115
  "$ref": "#/definitions/noun"
@@ -130,13 +126,12 @@
130
126
  "action": {
131
127
  "enum": ["fill"]
132
128
  },
133
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
129
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
134
130
  "target": {
135
131
  "title": "Target",
136
132
  "$ref": "#/definitions/noun"
137
133
  },
138
- "text": {"title": "Text", "type": "string"},
139
- "method": { "title": "Text entry method", "type": "string", "enum": ["pasting", "typing"] }
134
+ "text": {"title": "Text", "type": "string"}
140
135
  },
141
136
  "additionalProperties": false,
142
137
  "required": ["action", "target", "text"]
@@ -149,9 +144,8 @@
149
144
  "action": {
150
145
  "enum": ["type"]
151
146
  },
152
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
153
- "text": {"title": "Text", "type": "string"},
154
- "method": { "title": "Text entry method", "type": "string", "enum": ["pasting", "typing"] }
147
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
148
+ "text": {"title": "Text", "type": "string"}
155
149
  },
156
150
  "additionalProperties": false,
157
151
  "required": ["action", "text"]
@@ -164,7 +158,7 @@
164
158
  "action": {
165
159
  "enum": ["send_key"]
166
160
  },
167
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
161
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
168
162
  "key": {"title": "Key", "type": "string"},
169
163
  "modifier": {"title": "Modifier", "type": "string"}
170
164
  },
@@ -179,7 +173,7 @@
179
173
  "action": {
180
174
  "enum": ["hover"]
181
175
  },
182
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
176
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
183
177
  "target": {
184
178
  "title": "Target",
185
179
  "$ref": "#/definitions/noun"
@@ -188,15 +182,15 @@
188
182
  "additionalProperties": false,
189
183
  "required": ["action", "target"]
190
184
  },
191
- "dropdown_select": {
185
+ "select": {
192
186
  "type": "object",
193
- "title": "Dropdown Select",
187
+ "title": "Select",
194
188
  "description": "Selects specified item from the dropdown",
195
189
  "properties": {
196
190
  "action": {
197
- "enum": ["dropdown_select"]
191
+ "enum": ["select"]
198
192
  },
199
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
193
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
200
194
  "target": {
201
195
  "title": "Target",
202
196
  "$ref": "#/definitions/noun"
@@ -209,40 +203,6 @@
209
203
  "additionalProperties": false,
210
204
  "required": ["action", "target", "option"]
211
205
  },
212
- "checkbox_check": {
213
- "type": "object",
214
- "title": "Checkbox Check",
215
- "description": "Checks specified checkbox",
216
- "properties": {
217
- "action": {
218
- "enum": ["checkbox_check"]
219
- },
220
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
221
- "target": {
222
- "title": "Target",
223
- "$ref": "#/definitions/noun"
224
- }
225
- },
226
- "additionalProperties": false,
227
- "required": ["action", "target"]
228
- },
229
- "checkbox_uncheck": {
230
- "type": "object",
231
- "title": "Checkbox Uncheck",
232
- "description": "Unchecks specified checkbox",
233
- "properties": {
234
- "action": {
235
- "enum": ["checkbox_uncheck"]
236
- },
237
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
238
- "target": {
239
- "title": "Target",
240
- "$ref": "#/definitions/noun"
241
- }
242
- },
243
- "additionalProperties": false,
244
- "required": ["action", "target"]
245
- },
246
206
  "refresh": {
247
207
  "type": "object",
248
208
  "title": "Refresh",
@@ -251,7 +211,7 @@
251
211
  "action": {
252
212
  "enum": ["refresh"]
253
213
  },
254
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"}
214
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"}
255
215
  },
256
216
  "additionalProperties": false,
257
217
  "required": ["action"]
@@ -264,39 +224,12 @@
264
224
  "action": {
265
225
  "enum": ["navigate"]
266
226
  },
267
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
268
- "url": {"title": "URL", "type": "string"}
227
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
228
+ "url": {"title": "URL", "type": "string"},
229
+ "tab": {"title": "Tab", "type": "string", "enum": ["current", "new", "incognito"]}
269
230
  },
270
231
  "additionalProperties": false,
271
- "required": ["action", "url"]
272
- },
273
- "navigate_new_tab": {
274
- "type": "object",
275
- "title": "Navigate - New Tab",
276
- "description": "Navigates to specified URL in a new tab",
277
- "properties": {
278
- "action": {
279
- "enum": ["navigate_new_tab"]
280
- },
281
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
282
- "url": {"title": "URL", "type": "string"}
283
- },
284
- "additionalProperties": false,
285
- "required": ["action", "url"]
286
- },
287
- "navigate_incognito_tab": {
288
- "type": "object",
289
- "title": "Navigate - Incognito Tab",
290
- "description": "Navigates to specified URL in a new incognito tab",
291
- "properties": {
292
- "action": {
293
- "enum": ["navigate_incognito_tab"]
294
- },
295
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
296
- "url": {"title": "URL", "type": "string"}
297
- },
298
- "additionalProperties": false,
299
- "required": ["action", "url"]
232
+ "required": ["action", "url", "tab"]
300
233
  },
301
234
  "close_tab": {
302
235
  "type": "object",
@@ -306,7 +239,7 @@
306
239
  "action": {
307
240
  "enum": ["close_tab"]
308
241
  },
309
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"}
242
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"}
310
243
  },
311
244
  "additionalProperties": false,
312
245
  "required": ["action"]
@@ -319,7 +252,7 @@
319
252
  "action": {
320
253
  "enum": ["scroll"]
321
254
  },
322
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
255
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
323
256
  "direction": {"title": "Direction", "type": "string", "enum": ["up", "down", "left", "right"]},
324
257
  "target": {
325
258
  "title": "Target",
@@ -329,15 +262,15 @@
329
262
  "additionalProperties": false,
330
263
  "required": ["action", "direction", "target"]
331
264
  },
332
- "sleep": {
265
+ "wait": {
333
266
  "type": "object",
334
- "title": "Sleep",
267
+ "title": "Wait",
335
268
  "description": "Waits for a number of seconds",
336
269
  "properties": {
337
270
  "action": {
338
- "enum": ["sleep"]
271
+ "enum": ["wait"]
339
272
  },
340
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
273
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
341
274
  "seconds": {"title": "seconds", "type": "integer"}
342
275
  },
343
276
  "additionalProperties": false,
@@ -351,7 +284,7 @@
351
284
  "action": {
352
285
  "enum": ["drag_and_drop"]
353
286
  },
354
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
287
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
355
288
  "object": {
356
289
  "title": "Object",
357
290
  "$ref": "#/definitions/noun"
@@ -364,31 +297,13 @@
364
297
  "additionalProperties": false,
365
298
  "required": ["action", "target", "object"]
366
299
  },
367
- "click_and_hold": {
368
- "type": "object",
369
- "title": "Click and Hold",
370
- "description": "Clicks and holds the left mouse button over object for a number of seconds",
371
- "properties": {
372
- "action": {
373
- "enum": ["click_and_hold"]
374
- },
375
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
376
- "target": {
377
- "title": "Target",
378
- "$ref": "#/definitions/noun"
379
- },
380
- "seconds": {"title": "Seconds", "type": "integer"}
381
- },
382
- "additionalProperties": false,
383
- "required": ["action", "target", "seconds"]
384
- },
385
- "custom_action": {
300
+ "embedded_test": {
386
301
  "type": "object",
387
- "title": "Custom Action",
388
- "description": "Reusable custom action",
302
+ "title": "Embedded Test",
303
+ "description": "Embeds a Test",
389
304
  "properties": {
390
305
  "action": {
391
- "enum": ["custom_action"]
306
+ "enum": ["embedded_test"]
392
307
  },
393
308
  "test_id": {
394
309
  "title": "Test ID",
@@ -398,53 +313,41 @@
398
313
  "additionalProperties": false,
399
314
  "required": ["action", "test_id"]
400
315
  },
401
- "plain_language": {
316
+ "tester_instruction": {
402
317
  "type": "object",
403
- "title": "Plain Language",
404
- "description": "Allows to fallback to english",
318
+ "title": "Tester Instruction",
319
+ "description": "An action for a human to complete",
405
320
  "properties": {
406
321
  "action": {
407
- "enum": ["plain_language"]
322
+ "enum": ["tester_instruction"]
408
323
  },
409
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
324
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
410
325
  "instruction": {"title": "Instruction", "type": "string"}
411
326
  },
412
327
  "additionalProperties": false,
413
328
  "required": ["action", "instruction"]
414
329
  },
415
- "see": {
330
+ "observe": {
416
331
  "type": "object",
417
- "title": "See",
418
- "description": "Checks if element of the UI is visible",
332
+ "title": "Observe",
333
+ "description": "Checks if element of the UI is visible or not",
419
334
  "properties": {
420
335
  "assertion": {
421
- "enum": ["see"]
336
+ "enum": ["observe"]
422
337
  },
423
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
338
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
424
339
  "object": {
425
340
  "title": "Object",
426
341
  "$ref": "#/definitions/noun"
427
- }
428
- },
429
- "additionalProperties": false,
430
- "required": ["assertion", "object"]
431
- },
432
- "disappear": {
433
- "type": "object",
434
- "title": "Disappear",
435
- "description": "Checks if element of the UI is no longer visible",
436
- "properties": {
437
- "assertion": {
438
- "enum": ["disappear"]
439
342
  },
440
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
441
- "object": {
442
- "title": "Object",
443
- "$ref": "#/definitions/noun"
343
+ "visibility": {
344
+ "title": "Is the element visible?",
345
+ "type": "boolean",
346
+ "enum": [true, false]
444
347
  }
445
348
  },
446
349
  "additionalProperties": false,
447
- "required": ["assertion", "object"]
350
+ "required": ["assertion", "object", "visibility"]
448
351
  },
449
352
  "loaded": {
450
353
  "type": "object",
@@ -454,25 +357,25 @@
454
357
  "assertion": {
455
358
  "enum": ["loaded"]
456
359
  },
457
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
360
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
458
361
  "page": {"title": "Page", "type": "string"}
459
362
  },
460
363
  "additionalProperties": false,
461
364
  "required": ["assertion", "page"]
462
365
  },
463
- "plain_language_assertion": {
366
+ "tester_confirmation": {
464
367
  "type": "object",
465
- "title": "Plain Language Assertion",
466
- "description": "Allows to fallback to english",
368
+ "title": "Tester Confirmation",
369
+ "description": "Ask a question to confirm a behavior",
467
370
  "properties": {
468
371
  "assertion": {
469
- "enum": ["plain_language_assertion"]
372
+ "enum": ["tester_confirmation"]
470
373
  },
471
- "custom_action_id": {"title": "Custom Action ID", "type": "integer"},
472
- "instruction": {"title": "Instruction", "type": "string"}
374
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
375
+ "confirmation": {"title": "confirmation", "type": "string"}
473
376
  },
474
377
  "additionalProperties": false,
475
- "required": ["assertion", "instruction"]
378
+ "required": ["assertion", "confirmation"]
476
379
  }
477
380
  },
478
381
  "type": "object",
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Wisp
4
+ VERSION = '1.0.4'
5
+ STABLE_VERSION = '0.18.1'
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: 0.19.1
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski
@@ -48,6 +48,7 @@ extra_rdoc_files: []
48
48
  files:
49
49
  - canary-nouns.json
50
50
  - canary-wisp.json
51
+ - lib/version.rb
51
52
  - lib/wisp-schema.rb
52
53
  - nouns.json
53
54
  - wisp.json