Options
All
  • Public
  • Public/Protected
  • All
Menu

Supported Browsers

Matrix of supported browsers for automated javascript testing

npm version Release CI Cross Browser Testing

@ideal-postcodes/supported-browsers exports a matrix of supported browsers

Documentation

Browser exports for Saucelabs

Supported Browsers

Latest Desktop

  • Chrome
  • Safari
  • Firefox
  • Edge

Latest Mobile

  • Safari (iOS)
  • Chrome (Android)

Legacy Desktop

  • Internet Explorer 11

Legacy Mobile

  • Chrome (Android 6.0)
  • Safari (iOS 10.3)

Configuration & Usage

npm install @ideal-postcodes/supported-browsers
// Retrieve tested browser matrix
import { browsers } from "@ideal-postcodes/supported-browsers";

Test

npm test

Licence

MIT

Index

Type aliases

Browser

SupportMatrix

SupportMatrix: Record<string, Browser>

Variables

Const appiumVersion

appiumVersion: "1.17.1" = "1.17.1"

Const base

base: "SauceLabs" = "SauceLabs"

Const hostname

hostname: string | false = Object.keys(ni).map((interf) =>// @ts-ignoreni[interf].map((o) => !o.internal && o.family === "IPv4" && o.address)).reduce((a, b) => a.concat(b))// @ts-ignore.filter((o) => o)[0]

Const ni

ni: Dict<NetworkInterfaceInfo[]> = networkInterfaces()

Functions

Const ci

  • ci(): boolean
  • Return true if CI environment (Github actions) detected

    Returns boolean

Const config

  • config(__namedParameters: { build: undefined | string; defaults: any; testName: string }): any
  • Generates sauce config

    Parameters

    • __namedParameters: { build: undefined | string; defaults: any; testName: string }
      • build: undefined | string
      • defaults: any
      • testName: string

    Returns any

Const generateBuild

  • generateBuild(): string
  • Build ID

    Use gitsha and date if local

    Use Github action ID if CI

    Returns string

Const gitSha

  • gitSha(): string
  • Retrieve git sha

    Returns string

Object literals

Const browsers

browsers: object

Export supported browsers

Const latestDesktop

latestDesktop: object

chrome

chrome: object

base

base: "SauceLabs"

browserName

browserName: string = "chrome"

browserVersion

browserVersion: string = "latest"

edge

edge: object

base

base: "SauceLabs"

browserName

browserName: string = "microsoftedge"

browserVersion

browserVersion: string = "latest"

firefox

firefox: object

base

base: "SauceLabs"

browserName

browserName: string = "firefox"

browserVersion

browserVersion: string = "latest"

safari

safari: object

base

base: "SauceLabs"

browserName

browserName: string = "safari"

browserVersion

browserVersion: string = "latest"

platformName

platformName: string = "macOS 10.15"

Const latestMobile

latestMobile: object

android-latest

android-latest: object

appiumVersion

appiumVersion: string

base

base: "SauceLabs"

browserName

browserName: string = "Chrome"

deviceName

deviceName: string = "Android GoogleAPI Emulator"

platformName

platformName: string = "Android"

platformVersion

platformVersion: string = "11.0"

ios-latest

ios-latest: object

appiumVersion

appiumVersion: string

base

base: "SauceLabs"

browserName

browserName: string = "Safari"

deviceName

deviceName: string = "iPhone 11 Simulator"

platformName

platformName: string = "iOS"

platformVersion

platformVersion: string = "13.4"

Const legacyDesktop

legacyDesktop: object

ie

ie: object

base

base: "SauceLabs"

browserName

browserName: string = "internet explorer"

browserVersion

browserVersion: string = "11"

platformName

platformName: string = "Windows 8.1"

Const legacyMobile

legacyMobile: object

android-legacy

android-legacy: object

appiumVersion

appiumVersion: string

base

base: "SauceLabs"

browserName

browserName: string = "Chrome"

deviceName

deviceName: string = "Android GoogleAPI Emulator"

platformName

platformName: string = "Android"

platformVersion

platformVersion: string = "6.0"

ios-legacy

ios-legacy: object

appiumVersion

appiumVersion: string = "1.9.1"

base

base: "SauceLabs"

browserName

browserName: string = "Safari"

deviceName

deviceName: string = "iPhone Simulator"

deviceOrientation

deviceOrientation: string = "portrait"

platformName

platformName: string = "iOS"

platformVersion

platformVersion: string = "10.3"