()
| 528 | const startTimeout = 65 * 1000 |
| 529 | |
| 530 | function startSelenium() { |
| 531 | if (typeof this.timeout === 'function') { |
| 532 | this.timeout(startTimeout) // For mocha. |
| 533 | } |
| 534 | |
| 535 | info(`Starting selenium server ${seleniumJar}`) |
| 536 | return seleniumServer.start(60 * 1000) |
| 537 | } |
| 538 | |
| 539 | const /** !Function */ beforeHook = global.beforeAll || global.before |
| 540 | beforeHook(startSelenium, startTimeout) |