From 3a68686cc3713e37aa919d766fff4495cf9de409 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Fri, 6 Nov 2020 14:57:29 +0000 Subject: [PATCH] ui: Ensure per service intentions link to the correct place (#9122) * ui: Add a separate routeNsme to the per service intention listing * Add a test to make sure we go through to per service intention form --- .../app/templates/dc/services/show/intentions/index.hbs | 2 +- .../tests/acceptance/dc/services/show/intentions.feature | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/packages/consul-ui/app/templates/dc/services/show/intentions/index.hbs b/ui/packages/consul-ui/app/templates/dc/services/show/intentions/index.hbs index 68408ffe0c..b3a688d74e 100644 --- a/ui/packages/consul-ui/app/templates/dc/services/show/intentions/index.hbs +++ b/ui/packages/consul-ui/app/templates/dc/services/show/intentions/index.hbs @@ -38,7 +38,7 @@ <:idle as |list|> - + <:empty as |list|> diff --git a/ui/packages/consul-ui/tests/acceptance/dc/services/show/intentions.feature b/ui/packages/consul-ui/tests/acceptance/dc/services/show/intentions.feature index dd7b4fc652..2e87d16497 100644 --- a/ui/packages/consul-ui/tests/acceptance/dc/services/show/intentions.feature +++ b/ui/packages/consul-ui/tests/acceptance/dc/services/show/intentions.feature @@ -38,6 +38,8 @@ Feature: dc / services / show / intentions: Intentions per service And I see intentionsIsSelected on the tabs Scenario: I can see intentions And I see 3 intention models on the intentionList component + And I click intention on the intentionList.intentions component + Then the url should be /dc1/services/service-0/intentions/default:name:default:destination Scenario: I can delete intentions And I click actions on the intentionList.intentions component And I click delete on the intentionList.intentions component