1.4.0 • Published 10 years ago

kazana-integration-test v1.4.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
10 years ago

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'.

1.4.0

10 years ago

1.3.0

10 years ago

1.2.0

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago