From 2a93c3de920c5d82177087424a990c0224c5b1f0 Mon Sep 17 00:00:00 2001 From: Edwin Kruglov Date: Mon, 16 Oct 2023 16:34:12 +0100 Subject: [PATCH] fix(rfh): remove back link from show view Jira: PWNN-1691 --- app/controllers/framework_requests_controller.rb | 1 - .../framework_requests/edit_framework_request_dsi_spec.rb | 5 ----- .../framework_requests/edit_framework_request_guest_spec.rb | 5 ----- 3 files changed, 11 deletions(-) diff --git a/app/controllers/framework_requests_controller.rb b/app/controllers/framework_requests_controller.rb index 84607878e..35c248c76 100644 --- a/app/controllers/framework_requests_controller.rb +++ b/app/controllers/framework_requests_controller.rb @@ -9,7 +9,6 @@ def index def show @current_user = UserPresenter.new(current_user) - @back_url = edit_framework_request_origin_path if framework_request.submitted? redirect_to framework_request_submission_path(framework_request) diff --git a/spec/features/specify/framework_requests/edit_framework_request_dsi_spec.rb b/spec/features/specify/framework_requests/edit_framework_request_dsi_spec.rb index 47e13ffe4..5f4f46ee4 100644 --- a/spec/features/specify/framework_requests/edit_framework_request_dsi_spec.rb +++ b/spec/features/specify/framework_requests/edit_framework_request_dsi_spec.rb @@ -16,11 +16,6 @@ visit "/procurement-support/#{request.id}" end - it "goes back to the origin page" do - click_on "Back" - expect(page).to have_current_path "/procurement-support/#{request.id}/origin/edit" - end - it "has submission information" do expect(find("h1.govuk-heading-l", text: "Send your request")).to be_present expect(find("p.govuk-body", text: "Once you send this request, we will review it and get in touch within 2 working days.")).to be_present diff --git a/spec/features/specify/framework_requests/edit_framework_request_guest_spec.rb b/spec/features/specify/framework_requests/edit_framework_request_guest_spec.rb index c4f7cc7e1..74c842c03 100644 --- a/spec/features/specify/framework_requests/edit_framework_request_guest_spec.rb +++ b/spec/features/specify/framework_requests/edit_framework_request_guest_spec.rb @@ -20,11 +20,6 @@ visit "/procurement-support/#{request.id}" end - it "goes back to the origin page" do - click_on "Back" - expect(page).to have_current_path "/procurement-support/#{request.id}/origin/edit" - end - it "has submission information" do expect(find("h1.govuk-heading-l", text: "Send your request")).to be_present expect(find("p.govuk-body", text: "Once you send this request, we will review it and get in touch within 2 working days.")).to be_present