mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
cc44f76834
- 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-5465
26 lines
578 B
JavaScript
26 lines
578 B
JavaScript
// This list is static, so no requests are required
|
|
// in the command help menu.
|
|
|
|
import { getBrowsers } from "../browserstack/api.js";
|
|
|
|
export const browsers = [
|
|
"chrome",
|
|
"ie",
|
|
"firefox",
|
|
"edge",
|
|
"safari",
|
|
"opera",
|
|
"yandex",
|
|
"IE Mobile",
|
|
"Android Browser",
|
|
"Mobile Safari",
|
|
"jsdom"
|
|
];
|
|
|
|
// A function that can be used to update the above list.
|
|
export async function getAvailableBrowsers() {
|
|
const browsers = await getBrowsers( { flat: true } );
|
|
const available = [ ...new Set( browsers.map( ( { browser } ) => browser ) ) ];
|
|
return available.concat( "jsdom" );
|
|
}
|