()
| 502 | const startTimeout = 65 * 1000 |
| 503 | |
| 504 | function startSelenium() { |
| 505 | if (typeof this.timeout === 'function') { |
| 506 | this.timeout(startTimeout) // For mocha. |
| 507 | } |
| 508 | |
| 509 | info(`Starting selenium server ${seleniumJar}`) |
| 510 | return seleniumServer.start(60 * 1000) |
| 511 | } |
| 512 | |
| 513 | const /** !Function */ beforeHook = global.beforeAll || global.before |
| 514 | beforeHook(startSelenium, startTimeout) |