@@ -29,7 +29,7 @@ const runTest = (scenario, stepsToRun, rowData) => {
2929 ) ;
3030
3131 // eslint-disable-next-line func-names
32- it ( `Scenario: ${ scenario . name } ` , function ( ) {
32+ it ( scenario . name , function ( ) {
3333 const state = window . testState ;
3434 return cy
3535 . then ( ( ) => state . onStartScenario ( scenario , indexedSteps ) )
@@ -40,12 +40,14 @@ const runTest = (scenario, stepsToRun, rowData) => {
4040 } ) ;
4141} ;
4242
43+ const cleanupFilename = s => s . split ( "." ) [ 0 ] ;
44+
4345const writeCucumberJsonFile = json => {
4446 const outputFolder =
4547 window . cucumberJson . outputFolder || "cypress/cucumber-json" ;
4648 const outputPrefix = window . cucumberJson . filePrefix || "" ;
4749 const outputSuffix = window . cucumberJson . fileSuffix || ".cucumber" ;
48- const fileName = json [ 0 ] ? json [ 0 ] . uri : "empty" ;
50+ const fileName = json [ 0 ] ? cleanupFilename ( json [ 0 ] . uri ) : "empty" ;
4951 const outFile = `${ outputFolder } /${ outputPrefix } ${ fileName } ${ outputSuffix } .json` ;
5052 cy . writeFile ( outFile , json , { log : false } ) ;
5153} ;
@@ -56,7 +58,7 @@ const createTestFromScenarios = (
5658 testState
5759) => {
5860 // eslint-disable-next-line func-names
59- describe ( `Feature: ${ testState . feature . name } ` , function ( ) {
61+ describe ( testState . feature . name , function ( ) {
6062 before ( ( ) => {
6163 cy . then ( ( ) => testState . onStartTest ( ) ) ;
6264 } ) ;
0 commit comments