aboutsummaryrefslogtreecommitdiffstats
path: root/test/runner/selenium/runSelenium.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/runner/selenium/runSelenium.js')
-rw-r--r--test/runner/selenium/runSelenium.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/test/runner/selenium/runSelenium.js b/test/runner/selenium/runSelenium.js
deleted file mode 100644
index 848db36c7..000000000
--- a/test/runner/selenium/runSelenium.js
+++ /dev/null
@@ -1,30 +0,0 @@
-import createDriver from "./createDriver.js";
-
-export async function runSelenium(
- url,
- { browser },
- { debug, headless, verbose } = {}
-) {
- if ( debug && headless ) {
- throw new Error( "Cannot debug in headless mode." );
- }
-
- const driver = await createDriver( {
- browserName: browser,
- headless,
- verbose
- } );
-
- try {
- await driver.get( url );
- await driver.executeScript(
-`return new Promise( ( resolve ) => {
- QUnit.on( "runEnd", resolve );
-} )`
- );
- } finally {
- if ( !debug || headless ) {
- await driver.quit();
- }
- }
-}