( testDef: any, targetUri: any, defaultConfig: any, )
| 141 | } |
| 142 | |
| 143 | function toTestCaseInvocation( |
| 144 | testDef: any, |
| 145 | targetUri: any, |
| 146 | defaultConfig: any, |
| 147 | ): TestCaseInvocation { |
| 148 | const steps = testDef.steps ?? []; |
| 149 | const route = testDef.testConfig?.route ?? defaultConfig?.route ?? ""; |
| 150 | const browsers: Browser[] = testDef.testConfig?.browsers ?? |
| 151 | defaultConfig?.browsers ?? [Browser.CHROME]; |
| 152 | return { |
| 153 | testCase: { |
| 154 | id: testDef.id, |
| 155 | prerequisiteTestCaseId: testDef.prerequisiteTestCaseId, |
| 156 | startUri: targetUri + route, |
| 157 | displayName: testDef.displayName, |
| 158 | steps: steps.map((step: YamlStep) => fromYamlStep(step)), |
| 159 | }, |
| 160 | testExecution: browsers.map((browser) => ({ config: { browser } })), |
| 161 | }; |
| 162 | } |
no test coverage detected
searching dependent graphs…