Write unit, e2e tests for mobmonitor ui
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform/moblab/+/73dc1a1dae719ef2680b4e9fa929073cf280d710 commit 73dc1a1dae719ef2680b4e9fa929073cf280d710 Author: Matt Mallett <mattmallett@chromium.org> Date: Mon Mar 26 21:41:33 2018 [moblab] Create unit, e2e test for mobmonitor-ui Created a suite of karma tests to cover all of the mobmonitor components and services, and an end to end protractor test to test the full ui together. Created a mock backend for the end to end tests so that the test can be run outside of a moblab. Added instructions on how to run the tests in README BUG= chromium:824880 TEST=ng test, e2e/run_e2e.sh Change-Id: Idb95e18677fa4552cafebb6cae92ff322eaaca06 Reviewed-on: https://chromium-review.googlesource.com/979123 Commit-Ready: Matt Mallett <mattmallett@chromium.org> Tested-by: Matt Mallett <mattmallett@chromium.org> Reviewed-by: Keith Haddow <haddowk@chromium.org> [add] https://crrev.com/73dc1a1dae719ef2680b4e9fa929073cf280d710/src/mobmonitor-ui/e2e/run_e2e.sh [modify] https://crrev.com/73dc1a1dae719ef2680b4e9fa929073cf280d710/src/mobmonitor-ui/e2e/app.e2e-spec.ts [modify] https://crrev.com/73dc1a1dae719ef2680b4e9fa929073cf280d710/src/mobmonitor-ui/README.md [modify] https://crrev.com/73dc1a1dae719ef2680b4e9fa929073cf280d710/src/mobmonitor-ui/e2e/app.po.ts [modify] https://crrev.com/73dc1a1dae719ef2680b4e9fa929073cf280d710/src/mobmonitor-ui/src/app/health-checks/health-checks.component.spec.ts [modify] https://crrev.com/73dc1a1dae719ef2680b4e9fa929073cf280d710/src/mobmonitor-ui/src/app/services/mobmonitor-rpc.service.spec.ts [add] https://crrev.com/73dc1a1dae719ef2680b4e9fa929073cf280d710/src/mobmonitor-ui/e2e/proxy-e2e.conf.json [modify] https://crrev.com/73dc1a1dae719ef2680b4e9fa929073cf280d710/src/mobmonitor-ui/src/app/actions/actions.component.ts [modify] https://crrev.com/73dc1a1dae719ef2680b4e9fa929073cf280d710/src/mobmonitor-ui/src/app/app.component.spec.ts [modify] https://crrev.com/73dc1a1dae719ef2680b4e9fa929073cf280d710/src/mobmonitor-ui/src/app/health-checks/health-checks.component.ts [modify] https://crrev.com/73dc1a1dae719ef2680b4e9fa929073cf280d710/src/mobmonitor-ui/src/app/services/mobmonitor-rpc.service.ts [modify] https://crrev.com/73dc1a1dae719ef2680b4e9fa929073cf280d710/src/mobmonitor-ui/src/app/actions/actions.component.spec.ts
Comment 1 by haddowk@chromium.org
, Mar 22 2018