kazana-integration-test

1.4.0 • Public • Published

kazana-integration-test

Full stack test installing & running Kazana example app

NPM version Build Status Dependency Status

Setup

git clone git@github.com:eHealthAfrica/kazana-integration-test.git
cd kazana-integration-test
npm install

Test

devDependency Status

npm test

While working on the tests, you can start Selenium / Chrome driver once, and then tests re-run on each save

npm run start_selenium_with_chromedriver
npm run test:mocha:watch

Writing tests

When selecting elements in the kazana-example app, add data-qa attributes on the elements that you want to select. That way, it's easier to move elements around, and make changes to the kazana-example application itself without breaking any selenium tests.

Running tests in a different browser

TEST_CLIENT=selenium:firefox npm test

NOTE: Safari doesn't work at the moment, since the SafariDriver does not handle alerts.

Running tests on Sauce Labs

# a couple of examples 
SAUCE_USERNAME=username SAUCE_ACCESS_KEY=accesskey TEST_CLIENT=saucelabs:chrome npm test
SAUCE_USERNAME=username SAUCE_ACCESS_KEY=accesskey TEST_CLIENT='saucelabs:internet explorer' npm test
SAUCE_USERNAME=username SAUCE_ACCESS_KEY=accesskey TEST_CLIENT='saucelabs:internet explorer:10.0:Windows 8' npm test

eHealth Note: Our SauceLabs user/access key can be found in the usual place, under 'Services'.

Readme

Keywords

Package Sidebar

Install

npm i kazana-integration-test

Weekly Downloads

1

Version

1.4.0

License

Apache-2.0

Last publish

Collaborators

  • adamthompson
  • gr2m