Options
All
  • Public
  • Public/Protected
  • All
Menu

Supported Browsers

Matrix of supported browsers for automated javascript testing

CircleCI npm version Release

@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 7.0)

Legacy Desktop

  • Internet Explorer 11
  • Firefox 48
  • Chrome 43

Legacy Mobile

  • Android Browser (Android 5.1)
  • 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 base

base: "SauceLabs" = "SauceLabs"

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"

version

version: string = "latest"

edge

edge: object

base

base: "SauceLabs"

browserName

browserName: string = "microsoftedge"

version

version: string = "latest"

firefox

firefox: object

base

base: "SauceLabs"

browserName

browserName: string = "firefox"

version

version: string = "latest"

safari

safari: object

base

base: "SauceLabs"

browserName

browserName: string = "safari"

version

version: string = "latest"

Const latestMobile

latestMobile: object

android-latest

android-latest: object

base

base: "SauceLabs"

browserName

browserName: string = "Chrome"

deviceName

deviceName: string = "Android GoogleAPI Emulator"

deviceOrientation

deviceOrientation: string = "portrait"

platform

platform: string = "Android"

version

version: string = "7.0"

ios-latest

ios-latest: object

base

base: "SauceLabs"

browserName

browserName: string = "Safari"

deviceName

deviceName: string = "iPhone X Simulator"

deviceOrientation

deviceOrientation: string = "portrait"

platform

platform: string = "iOS"

version

version: string = "latest"

Const legacyDesktop

legacyDesktop: object

chrome-legacy

chrome-legacy: object

base

base: "SauceLabs"

browserName

browserName: string = "chrome"

platform

platform: string = "Windows 10"

version

version: string = "43.0"

firefox-legacy

firefox-legacy: object

base

base: "SauceLabs"

browserName

browserName: string = "firefox"

platform

platform: string = "Windows 10"

version

version: string = "48.0"

ie

ie: object

base

base: "SauceLabs"

browserName

browserName: string = "internet explorer"

platform

platform: string = "Windows 8.1"

version

version: string = "11"

Const legacyMobile

legacyMobile: object

android-legacy

android-legacy: object

base

base: "SauceLabs"

browserName

browserName: string = "Browser"

deviceName

deviceName: string = "Android GoogleAPI Emulator"

deviceOrientation

deviceOrientation: string = "portrait"

platform

platform: string = "Android"

version

version: string = "5.1"

ios-legacy

ios-legacy: object

base

base: "SauceLabs"

browserName

browserName: string = "Safari"

deviceName

deviceName: string = "iPhone SE Simulator"

deviceOrientation

deviceOrientation: string = "portrait"

platform

platform: string = "iOS"

version

version: string = "10.3"