()
| 481 | }; |
| 482 | |
| 483 | const selectorsShot = async () => { |
| 484 | for (let i = 0; i < selectors.length; i++) { |
| 485 | const selector = selectors[i]; |
| 486 | filePath = selectorMap[selector].filePath; |
| 487 | ensureDirectoryPath(filePath); |
| 488 | try { |
| 489 | await selectorShot(selector, filePath); |
| 490 | } catch (e) { |
| 491 | console.log(chalk.red(`Error capturing Element ${selector}`), e); |
| 492 | return fs.copy(config.env.backstop + ERROR_SELECTOR_PATH, filePath); |
| 493 | } |
| 494 | } |
| 495 | }; |
| 496 | await selectorsShot(); |
| 497 | } |
| 498 | } |
no test coverage detected