File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1+ 2+
3+ ## What's new
4+
5+ Fixed the issue with the ` QaseFields ` tag.
6+
1728
39## What's new
@@ -7,11 +13,11 @@ Support attachments in the test results.
713``` js
814const { Given , Then } = require (' cucumber' );
915
10- Given (' I have a step with attachment' , async function () {
16+ Given (' I have a step with attachment' , async function () {
1117 await this .attach (' Hello, world!' , ' text/plain' );
1218});
1319
14- Then (' I have a step with attachment' , async function () {
20+ Then (' I have a step with attachment' , async function () {
1521 await this .attach (' Hello, world!' , ' text/plain' );
1622});
1723```
Original file line number Diff line number Diff line change 11{
22 "name" : " cucumberjs-qase-reporter" ,
3- "version" : " 2.0.3 " ,
3+ "version" : " 2.0.4 " ,
44 "description" : " Qase TMS CucumberJS Reporter" ,
55 "homepage" : " https://github.com/qase-tms/qase-javascript" ,
66 "main" : " ./dist/index.js" ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ type TestStepResultStatus = (typeof Status)[keyof typeof Status];
2727const qaseIdRegExp = / ^ @ [ Q q ] - ? ( \d + ) $ / g;
2828const newQaseIdRegExp = / ^ @ [ Q q ] a s e [ I i ] [ D d ] = ( \d + ) $ / g;
2929const qaseTitleRegExp = / ^ @ [ Q q ] a s e [ T t ] i t l e = ( .+ ) $ / g;
30- const qaseFieldsRegExp = / ^ @ [ Q q ] a s e [ F f ] i e l d s : ( . + ? ) = ( .+ ) $ / g;
30+ const qaseFieldsRegExp = / ^ @ [ Q q ] a s e [ F f ] i e l d s = ( .+ ) $ / g;
3131const qaseIgnoreRegExp = / ^ @ [ Q q ] a s e [ I i ] [ G g ] [ N n ] [ O o ] [ R r ] [ E e ] $ / g;
3232
3333export class Storage {
@@ -346,7 +346,7 @@ export class Storage {
346346 }
347347
348348 if ( qaseFieldsRegExp . test ( tag . name ) ) {
349- const value = tag . name . replace ( / ^ @ [ Q q ] a s e [ F f ] i e l d s : / , '' ) ;
349+ const value = tag . name . replace ( / ^ @ [ Q q ] a s e [ F f ] i e l d s = / , '' ) ;
350350 try {
351351 // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
352352 const record : Record < string , string > = JSON . parse ( value ) ;
You can’t perform that action at this time.
0 commit comments