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.
- checksums.yaml +4 -4
- data/canary-wisp.json +61 -158
- data/lib/version.rb +6 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d4abc3b624c92af7aadcbf233621d7dd14bd9f7c6be7a52be60aeb99ee84ba7
|
4
|
+
data.tar.gz: 3b2e61a24d7f9d5325d1147a59c95d8ab74de977d041a6b9699ffbcc1aa97640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e476aa00de99f780fcffd78bea1c1a40cb2ad48ce69c93ae76bacaaadc32d24a3bc515c9112e78f53a781faa03edef9def86e2f347beb31fa1bd87af3bf23bb
|
7
|
+
data.tar.gz: c271a6d930237e77469b66eedd46fbb2f1e7fa32e3b8a7b9fc6ddcb72703248ac4bcdd18ea1a47e7e9426cac6ca56bd5cc7ea47792d11099db4d8d8b79d32d0f
|
data/canary-wisp.json
CHANGED
@@ -67,24 +67,18 @@
|
|
67
67
|
{"$ref": "#/definitions/type"},
|
68
68
|
{"$ref": "#/definitions/send_key"},
|
69
69
|
{"$ref": "#/definitions/hover"},
|
70
|
-
{"$ref": "#/definitions/
|
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/
|
75
|
+
{"$ref": "#/definitions/wait"},
|
80
76
|
{"$ref": "#/definitions/drag_and_drop"},
|
81
|
-
{"$ref": "#/definitions/
|
82
|
-
{"$ref": "#/definitions/
|
83
|
-
{"$ref": "#/definitions/
|
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/
|
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
|
-
"
|
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
|
-
"
|
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
|
-
"
|
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
|
-
"
|
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
|
-
"
|
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
|
-
"
|
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
|
-
"
|
185
|
+
"select": {
|
192
186
|
"type": "object",
|
193
|
-
"title": "
|
187
|
+
"title": "Select",
|
194
188
|
"description": "Selects specified item from the dropdown",
|
195
189
|
"properties": {
|
196
190
|
"action": {
|
197
|
-
"enum": ["
|
191
|
+
"enum": ["select"]
|
198
192
|
},
|
199
|
-
"
|
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
|
-
"
|
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
|
-
"
|
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
|
-
"
|
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
|
-
"
|
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
|
-
"
|
265
|
+
"wait": {
|
333
266
|
"type": "object",
|
334
|
-
"title": "
|
267
|
+
"title": "Wait",
|
335
268
|
"description": "Waits for a number of seconds",
|
336
269
|
"properties": {
|
337
270
|
"action": {
|
338
|
-
"enum": ["
|
271
|
+
"enum": ["wait"]
|
339
272
|
},
|
340
|
-
"
|
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
|
-
"
|
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
|
-
"
|
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": "
|
388
|
-
"description": "
|
302
|
+
"title": "Embedded Test",
|
303
|
+
"description": "Embeds a Test",
|
389
304
|
"properties": {
|
390
305
|
"action": {
|
391
|
-
"enum": ["
|
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
|
-
"
|
316
|
+
"tester_instruction": {
|
402
317
|
"type": "object",
|
403
|
-
"title": "
|
404
|
-
"description": "
|
318
|
+
"title": "Tester Instruction",
|
319
|
+
"description": "An action for a human to complete",
|
405
320
|
"properties": {
|
406
321
|
"action": {
|
407
|
-
"enum": ["
|
322
|
+
"enum": ["tester_instruction"]
|
408
323
|
},
|
409
|
-
"
|
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
|
-
"
|
330
|
+
"observe": {
|
416
331
|
"type": "object",
|
417
|
-
"title": "
|
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": ["
|
336
|
+
"enum": ["observe"]
|
422
337
|
},
|
423
|
-
"
|
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
|
-
"
|
441
|
-
|
442
|
-
"
|
443
|
-
"
|
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
|
-
"
|
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
|
-
"
|
366
|
+
"tester_confirmation": {
|
464
367
|
"type": "object",
|
465
|
-
"title": "
|
466
|
-
"description": "
|
368
|
+
"title": "Tester Confirmation",
|
369
|
+
"description": "Ask a question to confirm a behavior",
|
467
370
|
"properties": {
|
468
371
|
"assertion": {
|
469
|
-
"enum": ["
|
372
|
+
"enum": ["tester_confirmation"]
|
470
373
|
},
|
471
|
-
"
|
472
|
-
"
|
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", "
|
378
|
+
"required": ["assertion", "confirmation"]
|
476
379
|
}
|
477
380
|
},
|
478
381
|
"type": "object",
|
data/lib/version.rb
ADDED
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.
|
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
|