@@ -174,7 +174,7 @@ function getTestParametersString (parametersByTestName, testName) {
174174} 
175175
176176function  getTestTypeFromFramework  ( testFramework )  { 
177-   if  ( testFramework . includes ( 'playwright' )  ||  testFramework . includes ( 'cypress' ) )  { 
177+   if  ( testFramework   ===   'playwright'  ||  testFramework   ===   'cypress' )  { 
178178    return  'browser' 
179179  } 
180180  return  'test' 
@@ -276,12 +276,12 @@ function getCodeOwnersForFilename (filename, entries) {
276276  return  null 
277277} 
278278
279- function  getTestLevelCommonTags  ( command ,  testFrameworkVersion )  { 
279+ function  getTestLevelCommonTags  ( command ,  testFrameworkVersion ,   testFramework )  { 
280280  return  { 
281281    [ TEST_FRAMEWORK_VERSION ] : testFrameworkVersion , 
282282    [ LIBRARY_VERSION ] : ddTraceVersion , 
283283    [ TEST_COMMAND ] : command , 
284-     [ TEST_TYPE ] : 'test' 
284+     [ TEST_TYPE ] : getTestTypeFromFramework ( testFramework ) 
285285  } 
286286} 
287287
@@ -291,7 +291,7 @@ function getTestSessionCommonTags (command, testFrameworkVersion, testFramework)
291291    [ RESOURCE_NAME ] : `test_session.${ command }  , 
292292    [ TEST_MODULE ] : testFramework , 
293293    [ TEST_TOOLCHAIN ] : getPkgManager ( ) , 
294-     ...getTestLevelCommonTags ( command ,  testFrameworkVersion ) 
294+     ...getTestLevelCommonTags ( command ,  testFrameworkVersion ,   testFramework ) 
295295  } 
296296} 
297297
@@ -300,7 +300,7 @@ function getTestModuleCommonTags (command, testFrameworkVersion, testFramework)
300300    [ SPAN_TYPE ] : 'test_module_end' , 
301301    [ RESOURCE_NAME ] : `test_module.${ command }  , 
302302    [ TEST_MODULE ] : testFramework , 
303-     ...getTestLevelCommonTags ( command ,  testFrameworkVersion ) 
303+     ...getTestLevelCommonTags ( command ,  testFrameworkVersion ,   testFramework ) 
304304  } 
305305} 
306306
@@ -310,7 +310,7 @@ function getTestSuiteCommonTags (command, testFrameworkVersion, testSuite, testF
310310    [ RESOURCE_NAME ] : `test_suite.${ testSuite }  , 
311311    [ TEST_MODULE ] : testFramework , 
312312    [ TEST_SUITE ] : testSuite , 
313-     ...getTestLevelCommonTags ( command ,  testFrameworkVersion ) 
313+     ...getTestLevelCommonTags ( command ,  testFrameworkVersion ,   testFramework ) 
314314  } 
315315} 
316316
0 commit comments