open-consul/ui-v2/tests
John Cowen 40e632a955
ui: Enable recovery from an unreachable datacenter (500 error) (#7404)
For URL maintenance reasons we store the last visited DC in
localStorage incase you come back to a page (for example settings) that
doesn't have a dc in the URL.

A problem arises here if the last DC you tried to visit is unreachable.

The first fix here clears out the last visited DC from localStorage if
the API has errored out.

Secondly, our `href-mut` helper which mutates the current current and
replaces 'parts' in the URL rather than the whole thing functioned by
detecting the current route/URL you are on an 'mutating' that. A problem
arose here as even though you might be on the `/ui/dc-1/services` URL the
actual route is the 'error' route which does not have a URL that can be
changed properly.

The second fix here uses route.currentRoute.name over route.currentRouteName.

The latter is equal to error when an error occurs whereas the former gives you the name of the route before the error happened, which is actually what we want/the intent here.

ie. when `router.currentRouteName === 'error'` then
`router.currentRoute.name === Name Of Route Before It Errored` it seems
2020-03-09 09:10:47 +00:00
..
acceptance ui: Enable recovery from an unreachable datacenter (500 error) (#7404) 2020-03-09 09:10:47 +00:00
helpers ui: Run 2 separate test runs oss and ent (#7214) 2020-02-07 11:02:53 +00:00
integration ui: Coordinates don't require a nspace, so don't expect one in the repo (#7378) 2020-03-04 18:12:47 +00:00
lib ui: Acceptance test improvements to prepare for more NS tests (#6980) 2020-01-24 12:26:28 +00:00
pages ui: Enable recovery from an unreachable datacenter (500 error) (#7404) 2020-03-09 09:10:47 +00:00
steps ui: oss don't ever POST/PUT Namespaces when writing data (#7238) 2020-02-07 15:50:50 +00:00
unit ui: Add ability to search nodes listing page with IP Address (#7204) 2020-02-04 10:45:25 -05:00
dictionary.js ui: Run 2 separate test runs oss and ent (#7214) 2020-02-07 11:02:53 +00:00
index.html ui: Implements the ember-page-title addon to the UI (#7118) 2020-01-28 09:25:52 -05:00
pages.js ui: Hides the Routing tab for a service proxy (#7195) 2020-02-03 10:09:15 -05:00
steps.js ui: Acceptance test improvements to prepare for more NS tests (#6980) 2020-01-24 12:26:28 +00:00
test-helper.js ui: Implements a testable clipboard {{copy-button}} (#5967) 2019-06-21 11:42:40 +01:00