Commit f05278b6 authored by Dylan Griffith's avatar Dylan Griffith

Merge branch '300514-fix-audit-event-date-dependent-specs' into 'master'

Remove specific date in audit events spec

See merge request gitlab-org/gitlab!52995
parents 4218388f ef9c663a
......@@ -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