mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-13 17:45:36 +00:00
* cicd: Move cypress to selenium+mocha * cicd: with is not supported unless using an a container * cicd: relative path to mocha * cicd: the integration-tests runner now starts/stops OliveTin * cicd: Knowing the CWD helps debugging * cicd: Headless chrome * cicd: wait for integration-test server to be started * fmt: Mostly fix isses from eslint * cicd: #169 - Test multiple combo boxes * fmt: let should be const * cicd: Remove cypress entirely
19 lines
550 B
JavaScript
19 lines
550 B
JavaScript
import { Options } from 'selenium-webdriver/chrome.js'
|
|
import { Builder, Browser } from 'selenium-webdriver'
|
|
import getRunner from './runner.mjs'
|
|
|
|
export async function mochaGlobalSetup () {
|
|
const options = new Options()
|
|
options.addArguments('--headless')
|
|
|
|
global.webdriver = await new Builder().forBrowser(Browser.CHROME).setChromeOptions(options).build()
|
|
|
|
global.runner = getRunner()
|
|
|
|
console.log("Runner constructor: " + global.runner.constructor.name)
|
|
}
|
|
|
|
export async function mochaGlobalTeardown () {
|
|
await global.webdriver.quit()
|
|
}
|