From 6d30f9a50678ec130ecef36e130dfd9acfd120a3 Mon Sep 17 00:00:00 2001 From: Chris Roos Date: Thu, 28 Jul 2016 12:10:01 +0100 Subject: [PATCH] Add links to visualise Smart Answers to index The ability to visualise flows is a little bit hidden at the moment. This should make it more discoverable. --- app/views/smart_answers/index.html.erb | 5 ++++- test/functional/smart_answers_controller_test.rb | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/views/smart_answers/index.html.erb b/app/views/smart_answers/index.html.erb index c55791b8d86..2bfa84604bb 100644 --- a/app/views/smart_answers/index.html.erb +++ b/app/views/smart_answers/index.html.erb @@ -2,6 +2,9 @@ diff --git a/test/functional/smart_answers_controller_test.rb b/test/functional/smart_answers_controller_test.rb index fc94e854668..06a677d0e29 100644 --- a/test/functional/smart_answers_controller_test.rb +++ b/test/functional/smart_answers_controller_test.rb @@ -42,6 +42,12 @@ def teardown assert_select "ul li a[href='/flow-a']", text: "flow-a" assert_select "ul li a[href='/flow-b']", text: "flow-b" end + + should "render links to visualise flows" do + get :index + assert_select "ul li a[href='/flow-a/visualise']", text: "visualise" + assert_select "ul li a[href='/flow-b/visualise']", text: "visualise" + end end context "GET /" do