scratch-www/test/integration
2017-10-23 20:15:37 -04:00
..
smoke-testing Updated selenium & chromedriver versions, which fixed test failures in test_footer_links. Also fixed the clickFooterLinks function so it only checks links in the footer, to remove false positives (e.g. test finds 'Tips' in navbar and passes). 2017-10-23 20:15:37 -04:00
teacher-registration Update tests with the right xpath for error messages (nested span for translation) 2017-01-03 12:16:17 -05:00
package.json Updated selenium & chromedriver versions, which fixed test failures in test_footer_links. Also fixed the clickFooterLinks function so it only checks links in the footer, to remove false positives (e.g. test finds 'Tips' in navbar and passes). 2017-10-23 20:15:37 -04:00
README.md Fix Gh-1385 - Issue/smoke test signing in (#1411) 2017-07-19 12:58:50 -04:00

Requirements

  • Selenium
    • See this directory's package.json
  • TAP
    • In the scratch-www repo's package.json
  • Currently, we also require that you download Chromedriver, but this will be replaced by Saucelabs imminently

Running the tests

  • By default, tests run against our Staging instance, but you can pass in a different location if you want to run the tests against e.g. your local build

Using tap

  • Run all tests in the smoke-testing directory from the command-line: $ make smoke
  • To run a single file from the command-line: $ node_modules/.bin/tap ./test/integration/smoke-testing/filename.js --timeout=3600
    • The timeout var is for the length of the entire tap test-suite; if you are getting a timeout error, you may need to adjust this value (some of the Selenium tests take a while to run)

Configuration

Variable Default Description
SMOKE_USERNAME None Username for Scratch user you're signing in with to test
SMOKE_PASSWORD None Password for Scratch user you're signing in with to test

Using sauce

  • We're still working on setting this up; more info coming shortly