blob: 5e6cd64c5c11e7f324f20c7c08f5787b136b2e60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
require 'spec_helper'
feature 'Abuse reports', feature: true do
let(:another_user) { create(:user) }
before do
gitlab_sign_in :user
end
scenario 'Report abuse' do
visit user_path(another_user)
click_link 'Report abuse'
fill_in 'abuse_report_message', with: 'This user send spam'
click_button 'Send report'
expect(page).to have_content 'Thank you for your report'
visit user_path(another_user)
expect(page).to have_button("Already reported for abuse")
end
end
|