Allow empty status option for feedback messages (#7739)
This commit is contained in:
parent
81c9b27a7f
commit
911de37bc1
2 changed files with 8 additions and 7 deletions
|
|
@ -17,11 +17,11 @@
|
|||
<%= f.search_field :reporter_username_cont, placeholder: "Reporter", class: "form-control mx-3" %>
|
||||
|
||||
<%= f.select(
|
||||
:status_eq,
|
||||
options_for_select([["Open"], ["Invalid"], ["Resolved"]], @q.status_eq),
|
||||
{},
|
||||
class: "custom-select mx-3",
|
||||
) %>
|
||||
:status_eq,
|
||||
options_for_select(["Open", "Invalid", "Resolved"], @q.status_eq),
|
||||
{ include_blank: true },
|
||||
class: "custom-select mx-3",
|
||||
) %>
|
||||
|
||||
<%= f.submit "Search", class: "btn btn-secondary" %>
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -1,16 +1,17 @@
|
|||
require "rails_helper"
|
||||
|
||||
RSpec.describe "Admin awards badges", type: :system do
|
||||
RSpec.describe "Admin manages reports", type: :system do
|
||||
let(:admin) { create(:user, :super_admin) }
|
||||
|
||||
def clear_search_boxes
|
||||
fill_in "q_reporter_username_cont", with: ""
|
||||
fill_in "q_reported_url_cont", with: ""
|
||||
select "", from: "q_status_eq"
|
||||
end
|
||||
|
||||
before do
|
||||
sign_in admin
|
||||
visit "/internal/reports"
|
||||
visit internal_feedback_messages_path
|
||||
end
|
||||
|
||||
it "loads the view" do
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue