Commit b21b8337 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-improve-create-issue-spec' into 'master'

Improve intermittently failing create_issue_spec smoke test

See merge request gitlab-org/gitlab!64467
parents bae6e3cf 4853febc
......@@ -39,9 +39,9 @@ module QA
end
context 'when using attachments in comments', :object_storage do
let(:gif_file_name) { 'banana_sample.gif' }
let(:png_file_name) { 'testfile.png' }
let(:file_to_attach) do
File.absolute_path(File.join('qa', 'fixtures', 'designs', gif_file_name))
File.absolute_path(File.join('qa', 'fixtures', 'designs', png_file_name))
end
before do
......@@ -50,9 +50,9 @@ module QA
it 'comments on an issue with an attachment', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1742' do
Page::Project::Issue::Show.perform do |show|
show.comment('See attached banana for scale', attachment: file_to_attach)
show.comment('See attached image for scale', attachment: file_to_attach)
expect(show.noteable_note_item.find("img[src$='#{gif_file_name}']")).to be_visible
expect(show.noteable_note_item.find("img[src$='#{png_file_name}']")).to be_visible
end
end
end
......
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