scratch-www/test/integration
jwzimmer bc84e2c95a Fix issue/gh 1274 by adding a test for the statistics page (#1317)
* added a test for the stats page

* add newline at end of file

* added additional tests for more charts on the stats page

* fixed starting URL value (should be staging, not prod)

* Put close parens on new lines

* change comment style

* Add waits to prevent intermittent failure

* Switch root url back again to staging

* try new style of test & remove breaking tests

* moving away from t.ok

* check for class value rather than t.ok

* remove comments, use correct comment style, note not testable on staging atm

* add messages for tests

* more arrow functions
2017-06-21 09:48:22 -07:00
..
smoke-testing Fix issue/gh 1274 by adding a test for the statistics page (#1317) 2017-06-21 09:48:22 -07: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 Issue/gh 1013 remove end to end testing package dependencies from repo (#1319) 2017-05-24 10:12:37 -07:00
README.md Issue/gh 1013 remove end to end testing package dependencies from repo (#1319) 2017-05-24 10:12:37 -07: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)

Using sauce

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