open-consul/ui-v2
John Cowen 47730f96ea Fix tear down click handler problem in tests
It's not obvious what "the way" to teardown window event handlers is in
Ember. The datacenter-picker is permanently in the app during usage, but
in tests I'm assuming it gets added and removed lots.

So when you run the tests, as the tests aren't run in an isolated runner
the QUnit test runner ends up with a click handler on it, So if you
click on the test runner one of the tests will fail.

The failure is related to there not being an element with a `.contains`
method. So this checks that the element is truthy first, i.e. it exists.
If it doesn't it just bails out.
2018-06-12 11:24:35 +01:00
..
app Fix tear down click handler problem in tests 2018-06-12 11:24:35 +01:00
config UI V2 (#4086) 2018-05-10 19:52:53 +01:00
public UI V2 (#4086) 2018-05-10 19:52:53 +01:00
tests Adds filtering to the KV listing page 2018-06-12 11:24:35 +01:00
.dev.eslintrc.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
.editorconfig UI V2 (#4086) 2018-05-10 19:52:53 +01:00
.ember-cli UI V2 (#4086) 2018-05-10 19:52:53 +01:00
.eslintrc.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
.gitignore UI V2 (#4086) 2018-05-10 19:52:53 +01:00
.nvmrc UI V2 (#4086) 2018-05-10 19:52:53 +01:00
.prettierrc UI V2 (#4086) 2018-05-10 19:52:53 +01:00
.watchmanconfig UI V2 (#4086) 2018-05-10 19:52:53 +01:00
ember-cli-build.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
GNUmakefile UI V2 (#4086) 2018-05-10 19:52:53 +01:00
package.json UI V2 (#4086) 2018-05-10 19:52:53 +01:00
README.md UI V2 (#4086) 2018-05-10 19:52:53 +01:00
testem.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
yarn.lock UI V2 (#4086) 2018-05-10 19:52:53 +01:00

consul-ui

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone <repository-url> this repository
  • cd ui
  • yarn install

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Building

  • ember build (development)
  • ember build --environment production (production)

Deploying