@@ -13,7 +13,7 @@ import {
13
13
import { registerScreenshotHandler } from './screenshots' ;
14
14
import StatusDetails = Cypress . StatusDetails ;
15
15
import { logClient } from './helper' ;
16
- import { packageLog , tmsIssueUrl } from '../common' ;
16
+ import { descriptionId , packageLog , tmsIssueUrl } from '../common' ;
17
17
import { EventEmitter } from 'events' ;
18
18
import AllureEvents = Cypress . AllureEvents ;
19
19
@@ -205,6 +205,14 @@ export const allureInterface = (
205
205
return fn ( { task : 'link' , arg : { url : fullUrl , name : linkName , type } } ) ;
206
206
} ,
207
207
208
+ tmsWithId : ( url : string , name ?: string ) => {
209
+ const type : LinkType = 'tms' ;
210
+ const fullUrl = tmsIssueUrl ( env , url , type ) ;
211
+ const linkName = descriptionId ( env , url , type , name ) ;
212
+
213
+ return fn ( { task : 'link' , arg : { url : fullUrl , name : linkName , type } } ) ;
214
+ } ,
215
+
208
216
issue : ( url : string , name ?: string ) => {
209
217
const type : LinkType = 'issue' ;
210
218
const fullUrl = tmsIssueUrl ( env , url , type ) ;
@@ -213,6 +221,14 @@ export const allureInterface = (
213
221
return fn ( { task : 'link' , arg : { url : fullUrl , name : linkName , type } } ) ;
214
222
} ,
215
223
224
+ issueWithId : ( url : string , name ?: string ) => {
225
+ const type : LinkType = 'issue' ;
226
+ const fullUrl = tmsIssueUrl ( env , url , type ) ;
227
+ const linkName = descriptionId ( env , url , type , name ) ;
228
+
229
+ return fn ( { task : 'link' , arg : { url : fullUrl , name : linkName , type } } ) ;
230
+ } ,
231
+
216
232
label : ( name : string , value : string ) => fn ( { task : 'label' , arg : { name, value } } ) ,
217
233
suite : ( name : string ) => fn ( { task : 'suite' , arg : { name } } ) ,
218
234
parentSuite : ( name : string ) => fn ( { task : 'parentSuite' , arg : { name } } ) ,
0 commit comments