Interactive interface for browsing global, full-resolution satellite imagery
add mockFutureLayer testing documentation, fix docs for consistency and parsing warnings
Ed Plato7a590c59c2c5
diff --git a/doc/testing.md b/doc/testing.mdindex 6f8389b99..8b724c547 100644--- a/doc/testing.md+++ b/doc/testing.md@@ -21,6 +21,7 @@ To view the unit test code coverage, run `npm run test:coverage`.Use `npm run test:unit:coverage` or `npm run test:unit:tz:coverage` to run coverage tests individually.## End-to-end Tests+End to end tests are integrated into our CI and are required to pass before a submission is accepted. New features should be accompanied by End to End tests to cover any new functionality you add.Run end-to-end tests using `npm run e2e`@@ -40,7 +41,9 @@ To run tests in BrowserStack from your local machine:export BROWSERSTACK_ACCESS_KEY=yourkeyhereexport BROWSERSTACK_USER=yourusernamehere```+### Selenium Drivers+**(Note)** Driver reliability varies between Operating systems. Using local selenium drivers to run tests is more useful as a development tool for creating new tests than it is for verifying if all tests are passing.To run tests on your machine using a Chrome driver: Run `npm run e2e:chrome`.@@ -53,6 +56,7 @@ To run tests on your machine using a Firefox driver:To run tests for both browsers in sequence: `npm run e2e`.### Developing new End to End Tests+* When creating new tests you will likely want to work locally with a `chrome` or `Firefox` driver to expedite the development process.* If there is a specific test that you would like to run, you can change the `files` variable found in `./e2e/browserstack.conf.js` to point directly to your test.@@ -66,9 +70,10 @@ To run tests for both browsers in sequence: `npm run e2e`.| `timeoutCMR` | ms | *`N`* | Override the CMR timeout value in milliseconds || `mockEvents` | String | *`20170530`* | Use the static JSON file with event feeds found at mock/events\_data.json-X || `mockEvents` | String | *`20170530`*| Use the static JSON file with categories feeds found at mock/categories\_data.json-X |-| `mockSources` | String | **`20170530`** | Use the static JSON file with sources feeds found at mock/sources\_data.json-X |-| `mockAlerts` | string | **`alert`**, **`message`**, **`outage`**, **`no_types`**, or **`all_types`** | Use a static JSON file by passing the notification type. Local sources can be found at mock/notify_{string}.json |-| `modalView` | string | **`categories`**, **`measurements`**, or **`layers`** | Forces the 'Add Layers' modal to display categories, measurements, or layers. By default Artic/Antarctic shows measurements and Geographic shows categories. |+| `mockFutureLayer` | String | *`VIIRS_NOAA20_CorrectedReflectance_TrueColor,5D`*| Pass layer `id` and `futureTime` to be parsed and added to that layer on page load |+| `mockSources` | String | *`20170530`* | Use the static JSON file with sources feeds found at mock/sources\_data.json-X |+| `mockAlerts` | string | *`alert`*, *`message`*, *`outage`*, *`no_types`*, or *`all_types`* | Use a static JSON file by passing the notification type. Local sources can be found at mock/notify_{string}.json |+| `modalView` | string | *`categories`*, *`measurements`*, or *`layers`* | Forces the 'Add Layers' modal to display categories, measurements, or layers. By default Artic/Antarctic shows measurements and Geographic shows categories. || `loadDelay` | ms | *`N`* | After loading all resources, wait X milliseconds before starting. || `now` | date | *`YYYY-MM-DDThh:mm:ssZ`* | Overrides the current date and time. This only works when using the `now()` function from `js/util/util.js`. || `showError` | boolean | *`true` or `false`* | If any value is specified, an error dialog will be shown on startup. |