blob: 2cb6a76b6b345d2aa2fde2485803c77ad331f386 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# frozen_string_literal: true
module QA
context 'Plan', :smoke do
describe 'Issue creation' do
before do
Flow::Login.sign_in
end
it 'creates an issue', :reliable do
issue = Resource::Issue.fabricate_via_browser_ui!
Page::Project::Menu.perform(&:click_issues)
Page::Project::Issue::Index.perform do |index|
expect(index).to have_issue(issue)
end
end
context 'when using attachments in comments', :object_storage, quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/issues/205408', type: :bug } do
let(:gif_file_name) { 'banana_sample.gif' }
let(:file_to_attach) do
File.absolute_path(File.join('spec', 'fixtures', gif_file_name))
end
before do
Resource::Issue.fabricate_via_api!.visit!
end
it 'comments on an issue with an attachment' do
Page::Project::Issue::Show.perform do |show|
show.comment('See attached banana for scale', attachment: file_to_attach)
expect(show.noteable_note_item.find("img[src$='#{gif_file_name}']")).to be_visible
end
end
end
end
end
end
|