wisp-schema 1.2.3 → 1.4.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea6514e4fd27c79b345868d52c989a83054abf949b7df313a935b2908ffe6a62
4
- data.tar.gz: bfad055fa66994e843cc4f2dc0e89268b3a1e9ccf2f5a7f5390f25f31000bae3
3
+ metadata.gz: 7d6c5db386137d2c3c2358c69b49a21ed2955075ebb05187af035da1f75a57e2
4
+ data.tar.gz: 97d49c11d2114fc0d10b0bfa33ed13c4143108576567146a0efd80ac4c1f2a9b
5
5
  SHA512:
6
- metadata.gz: 936a851caa72f6e98ee1cec70ce1573e1af2f04e6508875522007ebee906b1c49d7ed68943ec2ee1f901888a992963f333cbb0f1c02c26cd3e3a73636bcb6f48
7
- data.tar.gz: 5a531d93b9f064d27729266f5258e62fd87ab7c0683a21663302ab46a09ee6e47fe0578b78182605eeb54b7025e822fb5b47ee8c3b821dd4da6d5601502508b8
6
+ metadata.gz: cacf8234ad27ef74ec2dc8a46acd626a1335f9f8f3d2833ee4b9bf7232c60b3f939b50448bf97b4f3562384215c2d865f3fd455d920ee9dccf53d6fce6fa7f9d
7
+ data.tar.gz: 3bd1b7278d12c686a63f97334a5b8b6c6478c073f6b7e6daa366ce9849138a27a56958070f98f84f26fb6eda6d3e0f2d428402d2741e488210b79565a5580900
data/canary-wisp.json CHANGED
@@ -77,7 +77,6 @@
77
77
  {"$ref": "#/definitions/tester_instruction"},
78
78
  {"$ref": "#/definitions/embedded_test"},
79
79
  {"$ref": "#/definitions/observe"},
80
- {"$ref": "#/definitions/loaded"},
81
80
  {"$ref": "#/definitions/tester_confirmation"}
82
81
  ]
83
82
  },
@@ -105,6 +104,21 @@
105
104
  "additionalProperties": false,
106
105
  "required": ["action", "target", "button", "hold"]
107
106
  },
107
+ "comment": {
108
+ "type": "object",
109
+ "action_type": "noop",
110
+ "title": "Comment",
111
+ "description": "A non-functional comment for others reading the test",
112
+ "properties": {
113
+ "action": {
114
+ "enum": ["comment"]
115
+ },
116
+ "id": {"title": "Action ID", "type": "integer"},
117
+ "text": {"title": "Text", "type": "string"}
118
+ },
119
+ "additionalProperties": false,
120
+ "required": ["action", "text"]
121
+ },
108
122
  "double_click": {
109
123
  "type": "object",
110
124
  "action_type": "action",
@@ -355,6 +369,10 @@
355
369
  "test_id": {
356
370
  "title": "Test ID",
357
371
  "type": "integer"
372
+ },
373
+ "id": {
374
+ "title": "Action ID",
375
+ "type": "integer"
358
376
  }
359
377
  },
360
378
  "additionalProperties": false,
@@ -402,23 +420,6 @@
402
420
  "additionalProperties": false,
403
421
  "required": ["action", "object", "visibility"]
404
422
  },
405
- "loaded": {
406
- "type": "object",
407
- "action_type": "assertion",
408
- "title": "Loaded",
409
- "description": "Checks if specified page has loaded",
410
- "properties": {
411
- "action": {
412
- "enum": ["loaded"]
413
- },
414
- "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
415
- "id": {"title": "Action ID", "type": "integer"},
416
- "delay_after": {"title": "Delay after in seconds", "type": "integer"},
417
- "page": {"title": "Page", "type": "string"}
418
- },
419
- "additionalProperties": false,
420
- "required": ["action", "page"]
421
- },
422
423
  "tester_confirmation": {
423
424
  "type": "object",
424
425
  "action_type": "assertion",
data/lib/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wisp
4
- VERSION = '1.2.3'
5
- STABLE_VERSION = '1.2.3'
4
+ VERSION = '1.4.0'
5
+ STABLE_VERSION = '1.4.0'
6
6
  CANARY_VERSION = '2.0.0'
7
7
  end
data/lib/wisp-schema.rb CHANGED
@@ -16,11 +16,11 @@ module Wisp
16
16
  ACTIONS = [
17
17
  "click",
18
18
  "close_tab",
19
+ "comment",
19
20
  "double_click",
20
21
  "drag_and_drop",
21
22
  "fill",
22
23
  "hover",
23
- "loaded",
24
24
  "navigate",
25
25
  "observe",
26
26
  "refresh",
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "action_type": "noop",
5
+ "title": "Comment",
6
+ "description": "A non-functional comment for others reading the test",
7
+ "properties": {
8
+ "action": {
9
+ "enum": ["comment"]
10
+ },
11
+ "id": {"title": "Action ID", "type": "integer"},
12
+ "text": {"title": "Text", "type": "string"},
13
+ "version": {
14
+ "type": "string",
15
+ "title": "Version"
16
+ }
17
+ },
18
+ "additionalProperties": false,
19
+ "required": ["action", "text"]
20
+ }
data/wisp.json CHANGED
@@ -77,7 +77,6 @@
77
77
  {"$ref": "#/definitions/tester_instruction"},
78
78
  {"$ref": "#/definitions/embedded_test"},
79
79
  {"$ref": "#/definitions/observe"},
80
- {"$ref": "#/definitions/loaded"},
81
80
  {"$ref": "#/definitions/tester_confirmation"}
82
81
  ]
83
82
  },
@@ -105,6 +104,21 @@
105
104
  "additionalProperties": false,
106
105
  "required": ["action", "target", "button", "hold"]
107
106
  },
107
+ "comment": {
108
+ "type": "object",
109
+ "action_type": "noop",
110
+ "title": "Comment",
111
+ "description": "A non-functional comment for others reading the test",
112
+ "properties": {
113
+ "action": {
114
+ "enum": ["comment"]
115
+ },
116
+ "id": {"title": "Action ID", "type": "integer"},
117
+ "text": {"title": "Text", "type": "string"}
118
+ },
119
+ "additionalProperties": false,
120
+ "required": ["action", "text"]
121
+ },
108
122
  "double_click": {
109
123
  "type": "object",
110
124
  "action_type": "action",
@@ -355,6 +369,10 @@
355
369
  "test_id": {
356
370
  "title": "Test ID",
357
371
  "type": "integer"
372
+ },
373
+ "id": {
374
+ "title": "Action ID",
375
+ "type": "integer"
358
376
  }
359
377
  },
360
378
  "additionalProperties": false,
@@ -402,23 +420,6 @@
402
420
  "additionalProperties": false,
403
421
  "required": ["action", "object", "visibility"]
404
422
  },
405
- "loaded": {
406
- "type": "object",
407
- "action_type": "assertion",
408
- "title": "Loaded",
409
- "description": "Checks if specified page has loaded",
410
- "properties": {
411
- "action": {
412
- "enum": ["loaded"]
413
- },
414
- "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
415
- "id": {"title": "Action ID", "type": "integer"},
416
- "delay_after": {"title": "Delay after in seconds", "type": "integer"},
417
- "page": {"title": "Page", "type": "string"}
418
- },
419
- "additionalProperties": false,
420
- "required": ["action", "page"]
421
- },
422
423
  "tester_confirmation": {
423
424
  "type": "object",
424
425
  "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.2.3
4
+ version: 1.4.0
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.17
21
+ version: 0.2.19
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.17
28
+ version: 0.2.19
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: semantic
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -53,11 +53,11 @@ files:
53
53
  - nouns.json
54
54
  - stable/actions/click.json
55
55
  - stable/actions/close_tab.json
56
+ - stable/actions/comment.json
56
57
  - stable/actions/double_click.json
57
58
  - stable/actions/drag_and_drop.json
58
59
  - stable/actions/fill.json
59
60
  - stable/actions/hover.json
60
- - stable/actions/loaded.json
61
61
  - stable/actions/navigate.json
62
62
  - stable/actions/observe.json
63
63
  - stable/actions/refresh.json
@@ -1,21 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "action_type": "assertion",
5
- "title": "Loaded",
6
- "description": "Checks if specified page has loaded",
7
- "properties": {
8
- "action": {
9
- "enum": ["loaded"]
10
- },
11
- "id": {"title": "Action ID", "type": "integer"},
12
- "delay_after": {"title": "Delay after in seconds", "type": "integer"},
13
- "page": {"title": "Page", "type": "string"},
14
- "version": {
15
- "type": "string",
16
- "title": "Version"
17
- }
18
- },
19
- "additionalProperties": false,
20
- "required": ["action", "page", "version"]
21
- }