Skip to content

Commit

Permalink
fix(rfh): remove back link from show view
Browse files Browse the repository at this point in the history
Jira: PWNN-1691
  • Loading branch information
EdwinKruglov committed Oct 19, 2023
1 parent 944ecdd commit 2a93c3d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion app/controllers/framework_requests_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a93c3d

Please sign in to comment.