vitest-cucumber-plugin 0.5.5 → 0.5.6
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.
- package/RELEASE_NOTES.md +1 -0
- package/package.json +1 -1
- package/src/gherkin.js +2 -0
- package/src/gherkin.ne +2 -0
- package/src/gherkin.umd.js +2 -0
- package/tests/data-tables/features/data-tables.feature +19 -0
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
* v0.5.6 : Fixed issue #25 which was preventing at symbols from being used in data tables
|
|
1
2
|
* v0.5.5 : Changed dynamic import statements to static ones so that Vitest watch works correctly
|
|
2
3
|
* v0.5.4 : Added vue test
|
|
3
4
|
* v0.5.3 : Provide code snippets when a step definition is not found
|
package/package.json
CHANGED
package/src/gherkin.js
CHANGED
|
@@ -126,6 +126,7 @@ var gherkin_umd$1 = {exports: {}};
|
|
|
126
126
|
{"name": "dataTableColumnText", "symbols": ["dataTableColumnText", "keywords"], "postprocess": data => data[0]+data[1]},
|
|
127
127
|
{"name": "dataTableColumnText", "symbols": ["dataTableColumnText", (lexer.has("word") ? {type: "word"} : word)], "postprocess": data => data[0]+data[1].value},
|
|
128
128
|
{"name": "dataTableColumnText", "symbols": ["dataTableColumnText", (lexer.has("ws") ? {type: "ws"} : ws)], "postprocess": data => data[0]+data[1].value},
|
|
129
|
+
{"name": "dataTableColumnText", "symbols": ["dataTableColumnText", (lexer.has("at") ? {type: "at"} : at)], "postprocess": data => data[0]+data[1].value},
|
|
129
130
|
{"name": "escapedColumnCharaters", "symbols": [(lexer.has("escapedPipe") ? {type: "escapedPipe"} : escapedPipe)], "postprocess": data => '|'},
|
|
130
131
|
{"name": "escapedColumnCharaters", "symbols": [(lexer.has("escapedBackSlash") ? {type: "escapedBackSlash"} : escapedBackSlash)], "postprocess": data => '\\'},
|
|
131
132
|
{"name": "escapedColumnCharaters", "symbols": [(lexer.has("escapedNewline") ? {type: "escapedNewline"} : escapedNewline)], "postprocess": data => '\n'},
|
|
@@ -152,6 +153,7 @@ var gherkin_umd$1 = {exports: {}};
|
|
|
152
153
|
{"name": "text", "symbols": ["text", (lexer.has("word") ? {type: "word"} : word)], "postprocess": data => data[0]+data[1].value},
|
|
153
154
|
{"name": "text", "symbols": ["text", (lexer.has("ws") ? {type: "ws"} : ws)], "postprocess": data => data[0]+data[1].value},
|
|
154
155
|
{"name": "text", "symbols": ["text", "keywords"], "postprocess": data => data[0]+data[1]},
|
|
156
|
+
{"name": "text", "symbols": ["text", (lexer.has("at") ? {type: "at"} : at)], "postprocess": data => data[0]+data[1].value},
|
|
155
157
|
{"name": "text", "symbols": ["text", (lexer.has("pipe") ? {type: "pipe"} : pipe)], "postprocess": data => data[0]+data[1].value},
|
|
156
158
|
{"name": "text", "symbols": ["text", (lexer.has("escapedPipe") ? {type: "escapedPipe"} : escapedPipe)], "postprocess": data => data[0]+data[1].value},
|
|
157
159
|
{"name": "text", "symbols": ["text", (lexer.has("escapedNewline") ? {type: "escapedNewline"} : escapedNewline)], "postprocess": data => data[0]+data[1].value},
|
package/src/gherkin.ne
CHANGED
|
@@ -132,6 +132,7 @@ dataTableColumnText -> null {% data => '' %}
|
|
|
132
132
|
| dataTableColumnText keywords {% data => data[0]+data[1] %}
|
|
133
133
|
| dataTableColumnText %word {% data => data[0]+data[1].value %}
|
|
134
134
|
| dataTableColumnText %ws {% data => data[0]+data[1].value %}
|
|
135
|
+
| dataTableColumnText %at {% data => data[0]+data[1].value %}
|
|
135
136
|
|
|
136
137
|
escapedColumnCharaters -> %escapedPipe {% data => '|' %}
|
|
137
138
|
| %escapedBackSlash {% data => '\\' %}
|
|
@@ -168,6 +169,7 @@ text -> null {% data => '' %}
|
|
|
168
169
|
| text %word {% data => data[0]+data[1].value %}
|
|
169
170
|
| text %ws {% data => data[0]+data[1].value %}
|
|
170
171
|
| text keywords {% data => data[0]+data[1] %}
|
|
172
|
+
| text %at {% data => data[0]+data[1].value %}
|
|
171
173
|
| text %pipe {% data => data[0]+data[1].value %}
|
|
172
174
|
| text %escapedPipe {% data => data[0]+data[1].value %}
|
|
173
175
|
| text %escapedNewline {% data => data[0]+data[1].value %}
|
package/src/gherkin.umd.js
CHANGED
|
@@ -117,6 +117,7 @@ var grammar = {
|
|
|
117
117
|
{"name": "dataTableColumnText", "symbols": ["dataTableColumnText", "keywords"], "postprocess": data => data[0]+data[1]},
|
|
118
118
|
{"name": "dataTableColumnText", "symbols": ["dataTableColumnText", (lexer.has("word") ? {type: "word"} : word)], "postprocess": data => data[0]+data[1].value},
|
|
119
119
|
{"name": "dataTableColumnText", "symbols": ["dataTableColumnText", (lexer.has("ws") ? {type: "ws"} : ws)], "postprocess": data => data[0]+data[1].value},
|
|
120
|
+
{"name": "dataTableColumnText", "symbols": ["dataTableColumnText", (lexer.has("at") ? {type: "at"} : at)], "postprocess": data => data[0]+data[1].value},
|
|
120
121
|
{"name": "escapedColumnCharaters", "symbols": [(lexer.has("escapedPipe") ? {type: "escapedPipe"} : escapedPipe)], "postprocess": data => '|'},
|
|
121
122
|
{"name": "escapedColumnCharaters", "symbols": [(lexer.has("escapedBackSlash") ? {type: "escapedBackSlash"} : escapedBackSlash)], "postprocess": data => '\\'},
|
|
122
123
|
{"name": "escapedColumnCharaters", "symbols": [(lexer.has("escapedNewline") ? {type: "escapedNewline"} : escapedNewline)], "postprocess": data => '\n'},
|
|
@@ -143,6 +144,7 @@ var grammar = {
|
|
|
143
144
|
{"name": "text", "symbols": ["text", (lexer.has("word") ? {type: "word"} : word)], "postprocess": data => data[0]+data[1].value},
|
|
144
145
|
{"name": "text", "symbols": ["text", (lexer.has("ws") ? {type: "ws"} : ws)], "postprocess": data => data[0]+data[1].value},
|
|
145
146
|
{"name": "text", "symbols": ["text", "keywords"], "postprocess": data => data[0]+data[1]},
|
|
147
|
+
{"name": "text", "symbols": ["text", (lexer.has("at") ? {type: "at"} : at)], "postprocess": data => data[0]+data[1].value},
|
|
146
148
|
{"name": "text", "symbols": ["text", (lexer.has("pipe") ? {type: "pipe"} : pipe)], "postprocess": data => data[0]+data[1].value},
|
|
147
149
|
{"name": "text", "symbols": ["text", (lexer.has("escapedPipe") ? {type: "escapedPipe"} : escapedPipe)], "postprocess": data => data[0]+data[1].value},
|
|
148
150
|
{"name": "text", "symbols": ["text", (lexer.has("escapedNewline") ? {type: "escapedNewline"} : escapedNewline)], "postprocess": data => data[0]+data[1].value},
|
|
@@ -23,3 +23,22 @@ Feature: Data Tables
|
|
|
23
23
|
| 2 | two |
|
|
24
24
|
| 8 | eight |
|
|
25
25
|
| 3 | three |
|
|
26
|
+
|
|
27
|
+
Scenario: You should be able to have different types of characters in the table cells
|
|
28
|
+
Given the following data:
|
|
29
|
+
| id | value |
|
|
30
|
+
| 9 | ~!@#$%^&*()_+ |
|
|
31
|
+
| 1 | Ֆունկցիոնալություն |
|
|
32
|
+
| 5 | ?>":{}[]`~';/., |
|
|
33
|
+
| 6 | |
|
|
34
|
+
| 7 | control |
|
|
35
|
+
|
|
36
|
+
When the following ids are removed:
|
|
37
|
+
| 7 |
|
|
38
|
+
|
|
39
|
+
Then the data will contain the following:
|
|
40
|
+
| id | value |
|
|
41
|
+
| 9 | ~!@#$%^&*()_+ |
|
|
42
|
+
| 1 | Ֆունկցիոնալություն |
|
|
43
|
+
| 5 | ?>":{}[]`~';/., |
|
|
44
|
+
| 6 | |
|