diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2024-04-01 10:23:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-01 10:23:36 -0400 |
commit | 284b082eb86602705519d6ca754c40f6d2f8fcc0 (patch) | |
tree | be30f1d0656bdab531f9eeefacc2a99e7d6d70bf /test/runner/selenium/runSelenium.js | |
parent | 691c0aeeded5dea1ca2a0c5474c7adfdb1dadffe (diff) | |
download | jquery-284b082eb86602705519d6ca754c40f6d2f8fcc0.tar.gz jquery-284b082eb86602705519d6ca754c40f6d2f8fcc0.zip |
Tests: share queue/browser handling for all worker types
- one queue to rule them all: browserstack, selenium, and jsdom
- retries and hard retries are now supported in selenium
- selenium tests now re-use browsers in the same way as browserstack
Close gh-5460
Diffstat (limited to 'test/runner/selenium/runSelenium.js')
-rw-r--r-- | test/runner/selenium/runSelenium.js | 30 |
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(); - } - } -} |