open-consul/ui-v2/tests/acceptance/steps/dc
John Cowen 334e16a6cf
ui: Ensures nested policy forms are reset properly (#5838)
1. All {{ivy-codemirror}} components need 'refreshing' when they become
visible via our own `didAppear` method on the `{{code-editor}}`
component

(also see:)
- https://github.com/hashicorp/consul/pull/4190#discussion_r193270223
- 73db111db8 (r225264296)

2. On initial investigation, it looks like the component we are using
for the code editor doesn't distinguish between setting its `value`
programatically and a `keyup` event, i.e. an interaction from the user.
We currently pretend that whenever its `value` changes, it is a `keyup`
event. This means that when we reset the `value` to `""`
programmatically for form resetting purposes, a 'pretend keyup' event
would also be fired, which would in turn kick off the validation, which
would fail and show an error message for empty values in other fields of
the form - something that is perfectly valid if you haven't typed
anything yet. We solved this by checking for `isPristine` on fields that
are allowed to be empty before you have typed anything.
2019-06-04 15:57:35 +01:00
..
acls ui: Ensures nested policy forms are reset properly (#5838) 2019-06-04 15:57:35 +01:00
intentions ui: [BUGFIX] Intentions were showing the wrong notification on creation (#4658) 2018-09-12 20:41:43 +01:00
kv/index WIP: Feature/acceptance tests 2018-06-12 11:24:35 +01:00
kvs UI: Simplify/refactor the actions/notification layer (#4572) + (#4573) 2018-08-29 19:14:31 +01:00
nodes UI: External Source markers (#4640) 2018-09-12 20:23:39 +01:00
services UI: Add forking based on service instance id existence (#5392) 2019-05-01 18:22:15 +00:00
forwarding-steps.js Add a beforeModel hook at dc/index to auto transition to services 2018-06-21 12:49:00 +01:00
index-steps.js WIP: Feature/acceptance tests 2018-06-12 11:24:35 +01:00
list-blocking-steps.js UI: Add EventSource ready for implementing blocking queries (#5070) 2019-05-01 18:22:06 +00:00
list-steps.js WIP: Feature/acceptance tests 2018-06-12 11:24:35 +01:00