```ruby
# frozen_string_literal: true

require "rails_helper"

feature "Refreshing audit data", type: :feature, js: true do
  scenario "Manually requesting to refresh audit data" do
    login_as_clinical
    create(:audit, name: "xx", view_name: "yy")
    visit reporting_audits_path
    ActiveJob::Base.queue_adapter = :test

    within "table.audits" do
      click_on "Refresh Data"
    end

    pending

    expect(Renalware::Reporting::RefreshAuditDataJob).to have_been_enqueued
  end
end
```

Fix specs now that aonly superadmin can refresh an audit
user
```ruby
# frozen_string_literal: true

require "rails_helper"

feature "Refreshing audit data", type: :feature, js: true do
  scenario "Manually requesting to refresh audit data" do
    login_as_super_admin
    create(:audit, name: "xx", view_name: "yy")
    visit reporting_audits_path
    ActiveJob::Base.queue_adapter = :test

    within "table.audits" do
      click_on "Refresh Data"
    end

    pending

    expect(Renalware::Reporting::RefreshAuditDataJob).to have_been_enqueued
  end
end
```
assistant