import { TestGroupName } from 'functional-tests' ; import { TestIdentifier } from '../controllers/activity-request-data' ; import { E2EScanScenarioDefinition } from './e2e-scan-scenario-definitions' ; export const getTestIdentifiersForScenario = ( scenarioDef ) : TestIdentifier [ ] => { const testGroupNames = [ ] . concat ( ... Object . values ( scenarioDef . testGroups ) ) ; return testGroupNames . map ( ( testGroupName ) => { return { scenarioName : scenarioDef . readableName , testGroupName : testGroupName } ; } ) ; } ;