wisp-schema 1.5.0 → 1.7.0

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: e73f98b159f41d1a474b97c805a6524cdcb074f78c87814ce3d45ea656476b10
4
- data.tar.gz: 5fe655578655fa555a51b9780125a81c17671dc8ebc3a0c5adcf6b49a793df52
3
+ metadata.gz: f951c7c703e9cb92701bd9be75a87a7c217090d06ce7a7faafe4ab6a2cd48b94
4
+ data.tar.gz: 0c8d3b49d67ece5f2620ef278578c395133bff5480d45fda760e9ac2e51e97ca
5
5
  SHA512:
6
- metadata.gz: 0ccd31577de8f3874228b0b8cbcadb3bcd9db61c080dbb24403cf894e0f55097807a3803436c553e111ed8f48abd80009e8fffe06a14c3fc497ac2f2ed9f9b44
7
- data.tar.gz: d568bfc9df99e0d1a470e16a867c851dd8f93214546a90b0f34bb79f9f90c7700b74cdf0148fb2fea38d5fb2c5134a7558b2fc7a6ba2b5ac6f99e918446348a9
6
+ metadata.gz: 62ce800a08f8849c68129f2f5d43bfc8e134aad7c3a839a30ce6a0ca0e685608a8118e94b41041415349c633933b8451b3bc908f0f1469272c39d08eba5f6b62
7
+ data.tar.gz: c85b5f0f7ec39f1dda8dc3bc0a4a41f30b91c9aad95e2e9118af464eec989dee40ff225aec3b357a6adf989a02ccc6ff6a148c27da846cbd4afa4c0e0ef3d2cf
data/canary-nouns.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
14
14
  "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}},
15
15
  "match_mode": {
16
- "enum": ["pixel", "pixel_and_ocr", "semantic"]
16
+ "enum": ["pixel", "pixel_and_ocr", "semantic", "strict"]
17
17
  },
18
18
  "ocr_expression": {
19
19
  "title": "Expression to use for text matching",
data/canary-wisp.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
21
21
  "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}},
22
22
  "match_mode": {
23
- "enum": ["pixel", "pixel_and_ocr", "semantic"]
23
+ "enum": ["pixel", "pixel_and_ocr", "semantic", "strict"]
24
24
  },
25
25
  "ocr_expression": {
26
26
  "title": "Expression to use for text matching",
@@ -61,6 +61,7 @@
61
61
  "verb": {
62
62
  "title": "Wisp Verb",
63
63
  "oneOf": [
64
+ {"$ref": "#/definitions/ai_confirmation"},
64
65
  {"$ref": "#/definitions/click"},
65
66
  {"$ref": "#/definitions/comment"},
66
67
  {"$ref": "#/definitions/double_click"},
@@ -81,6 +82,27 @@
81
82
  {"$ref": "#/definitions/tester_confirmation"}
82
83
  ]
83
84
  },
85
+ "ai_confirmation": {
86
+ "type": "object",
87
+ "action_type": "assertion",
88
+ "title": "AI Confirmation",
89
+ "description": "A Yes (pass) or No (fail) question answered by AI",
90
+ "properties": {
91
+ "action": {
92
+ "enum": ["ai_confirmation"]
93
+ },
94
+ "id": {"title": "Action ID", "type": "integer"},
95
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
96
+ "delay_after": {"title": "Delay after in seconds", "type": "integer"},
97
+ "question": {"title": "Question for the AI", "type": "string"},
98
+ "version": {
99
+ "type": "string",
100
+ "title": "Version"
101
+ }
102
+ },
103
+ "additionalProperties": false,
104
+ "required": ["action", "question"]
105
+ },
84
106
  "click": {
85
107
  "type": "object",
86
108
  "action_type": "action",
data/lib/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wisp
4
- VERSION = '1.5.0'
5
- STABLE_VERSION = '1.5.0'
4
+ VERSION = '1.7.0'
5
+ STABLE_VERSION = '1.7.0'
6
6
  CANARY_VERSION = '2.0.0'
7
7
  end
data/lib/wisp-schema.rb CHANGED
@@ -14,6 +14,7 @@ module Wisp
14
14
  CANARY_NOUNS_PATH = File.expand_path('../canary-nouns.json', __dir__)
15
15
 
16
16
  ACTIONS = [
17
+ "ai_confirmation",
17
18
  "click",
18
19
  "close_tab",
19
20
  "comment",
data/nouns.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
14
14
  "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}},
15
15
  "match_mode": {
16
- "enum": ["pixel", "pixel_and_ocr", "semantic"]
16
+ "enum": ["pixel", "pixel_and_ocr", "semantic", "strict"]
17
17
  },
18
18
  "ocr_expression": {
19
19
  "title": "Expression to use for text matching",
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "action_type": "assertion",
5
+ "title": "AI Confirmation",
6
+ "description": "A Yes (pass) or No (fail) question answered by AI",
7
+ "properties": {
8
+ "action": {
9
+ "enum": ["ai_confirmation"]
10
+ },
11
+ "id": {"title": "Action ID", "type": "integer"},
12
+ "delay_after": {"title": "Delay after in seconds", "type": "integer"},
13
+ "question": {"title": "Question for the AI", "type": "string"},
14
+ "version": {
15
+ "type": "string",
16
+ "title": "Version"
17
+ }
18
+ },
19
+ "additionalProperties": false,
20
+ "required": ["action", "question"]
21
+ }
data/wisp.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
21
21
  "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}},
22
22
  "match_mode": {
23
- "enum": ["pixel", "pixel_and_ocr", "semantic"]
23
+ "enum": ["pixel", "pixel_and_ocr", "semantic", "strict"]
24
24
  },
25
25
  "ocr_expression": {
26
26
  "title": "Expression to use for text matching",
@@ -61,6 +61,7 @@
61
61
  "verb": {
62
62
  "title": "Wisp Verb",
63
63
  "oneOf": [
64
+ {"$ref": "#/definitions/ai_confirmation"},
64
65
  {"$ref": "#/definitions/click"},
65
66
  {"$ref": "#/definitions/comment"},
66
67
  {"$ref": "#/definitions/double_click"},
@@ -81,6 +82,27 @@
81
82
  {"$ref": "#/definitions/tester_confirmation"}
82
83
  ]
83
84
  },
85
+ "ai_confirmation": {
86
+ "type": "object",
87
+ "action_type": "assertion",
88
+ "title": "AI Confirmation",
89
+ "description": "A Yes (pass) or No (fail) question answered by AI",
90
+ "properties": {
91
+ "action": {
92
+ "enum": ["ai_confirmation"]
93
+ },
94
+ "id": {"title": "Action ID", "type": "integer"},
95
+ "embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
96
+ "delay_after": {"title": "Delay after in seconds", "type": "integer"},
97
+ "question": {"title": "Question for the AI", "type": "string"},
98
+ "version": {
99
+ "type": "string",
100
+ "title": "Version"
101
+ }
102
+ },
103
+ "additionalProperties": false,
104
+ "required": ["action", "question"]
105
+ },
84
106
  "click": {
85
107
  "type": "object",
86
108
  "action_type": "action",
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.5.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski
@@ -51,6 +51,7 @@ files:
51
51
  - lib/version.rb
52
52
  - lib/wisp-schema.rb
53
53
  - nouns.json
54
+ - stable/actions/ai_confirmation.json
54
55
  - stable/actions/click.json
55
56
  - stable/actions/close_tab.json
56
57
  - stable/actions/comment.json