Giter Club home page Giter Club logo

browser-tests's Introduction

browser-tests

Build status

CI and adhoc testing for cross browser API support using nightwatch, selenium and saucelabs

Cross-browser testing using Buildkite CI

After each push Buildkite runs cross-browser UI tests over core libraries and plugins

Running Ad hoc chrome and firefox tests locally

In Chrome yarn test-chrome In Firefox yarn test-firefox

Running cross-browser tests locally

You can run cross-browser tests locally leveraging docker and Sauce Labs by running the following:

docker-compose run
SAUCE_USERNAME=... SAUCE_ACCESS_KEY=... docker-compose run browser-tests .buildkite/run-all-tests.sh

Running Ad hoc cross-browser tests remotely

(For convenience you should add SAUCE_USERNAME and SAUCE_ACCESS_KEY as environment variables)

  1. Start the app server
    yarn dev
  2. Start sauce connect
    sc -u <saucelabs username> -k <saucelabs access key>
  3. Run the tests remotely
    run specific test: yarn test-remote -- --env ie-11
    run all tests: yarn test-remote

The Tests

Basic UI Test

Runs simple UI over core fusion libraries and plugins. In theory should be sufficient to verify necessary API/polyfill support, though we should add more UI interactions to improve confidence level.

Polyfills Test

Off by default. Tests for a selection of ES2015+ utils which are not transpiled by Babel at buildtime. Tested utils are somewhat arbitary as not all are necessarily required by fusion, so only uncomment if you want to test for specific API/polyfill support.

Nightwatch Configuration files

  • Buildkite: nightwatch-ci.js
  • Ad Hoc (local): nightwatch.js
  • Ad Hoc (remote): nightwatch-remote.js

Test folder / file
src_folders: ['src/test/browser/index.js'],

Test environments
e.g.

'chrome-mac': {
  desiredCapabilities: {
    browserName: 'chrome',
    platform: 'macOS 10.12',
  },
},

To add additional test environments see https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/

browser-tests's People

Contributors

alexmsmithca avatar angus-c avatar ganemone avatar kevingrandon avatar lhorie avatar renovate-bot avatar renovate[bot] avatar rtsao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.