diff options
Diffstat (limited to 'tests/runner/lib')
-rw-r--r-- | tests/runner/lib/buildTestUrl.js | 7 | ||||
-rw-r--r-- | tests/runner/lib/getBrowserString.js | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/runner/lib/buildTestUrl.js b/tests/runner/lib/buildTestUrl.js index 826548852..5eb3b049b 100644 --- a/tests/runner/lib/buildTestUrl.js +++ b/tests/runner/lib/buildTestUrl.js @@ -1,4 +1,4 @@ -export function buildTestUrl( suite, { jquery, migrate, port, reportId } ) { +export function buildTestUrl( suite, { browserstack, jquery, migrate, port, reportId } ) { if ( !port ) { throw new Error( "No port specified." ); } @@ -17,5 +17,8 @@ export function buildTestUrl( suite, { jquery, migrate, port, reportId } ) { query.append( "reportId", reportId ); } - return `http://localhost:${ port }/tests/unit/${ suite }/${ suite }.html?${ query }`; + // BrowserStack supplies a custom domain for local testing, + // which is especially necessary for iOS testing. + const host = browserstack ? "bs-local.com" : "localhost"; + return `http://${ host }:${ port }/tests/unit/${ suite }/${ suite }.html?${ query }`; } diff --git a/tests/runner/lib/getBrowserString.js b/tests/runner/lib/getBrowserString.js index 413a60500..0d293074c 100644 --- a/tests/runner/lib/getBrowserString.js +++ b/tests/runner/lib/getBrowserString.js @@ -3,7 +3,6 @@ const browserMap = { edge: "Edge", firefox: "Firefox", ie: "IE", - jsdom: "JSDOM", opera: "Opera", safari: "Safari" }; |