Commit ef9c663a authored by Tan Le's avatar Tan Le

Remove specific dates in audit events spec

By default, the audit event search results are limited to the current
month. Having records created beyond that time range requires setting
the date filter or else they will not show up in the page.

The specific broken specs do not test date filter or order logic. Hence,
we could remove these dates.
parent b22d82a3
......@@ -175,9 +175,9 @@ RSpec.describe 'Projects > Audit Events', :js do
end
describe 'combined list of authenticated and unauthenticated users' do
let!(:audit_event_1) { create(:project_audit_event, :unauthenticated, entity_type: 'Project', entity_id: project.id, created_at: 5.days.ago) }
let!(:audit_event_2) { create(:project_audit_event, author_id: non_existing_record_id, entity_type: 'Project', entity_id: project.id, created_at: 3.days.ago) }
let!(:audit_event_3) { create(:project_audit_event, entity_type: 'Project', entity_id: project.id, created_at: Date.current) }
let!(:audit_event_1) { create(:project_audit_event, :unauthenticated, entity_type: 'Project', entity_id: project.id) }
let!(:audit_event_2) { create(:project_audit_event, author_id: non_existing_record_id, entity_type: 'Project', entity_id: project.id) }
let!(:audit_event_3) { create(:project_audit_event, entity_type: 'Project', entity_id: project.id) }
it 'displays the correct authors names' do
visit project_audit_events_path(project)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment