Commit 26b589b6 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'qa-add-close-issue-smoke-test' into 'master'

Adds a smoke test for closing an issue

See merge request gitlab-org/gitlab!33332
parents be5cde2c c37d488f
......@@ -3,6 +3,8 @@
module QA
context 'Plan', :smoke do
describe 'Issue creation' do
let(:closed_issue) { Resource::Issue.fabricate_via_api! }
before do
Flow::Login.sign_in
end
......@@ -17,6 +19,25 @@ module QA
end
end
it 'closes an issue' do
closed_issue.visit!
Page::Project::Issue::Show.perform do |issue_page|
issue_page.click_close_issue_button
expect(issue_page).to have_element(:reopen_issue_button)
end
Page::Project::Menu.perform(&:click_issues)
Page::Project::Issue::Index.perform do |index|
expect(index).not_to have_issue(closed_issue)
index.click_closed_issues_link
expect(index).to have_issue(closed_issue)
end
end
context 'when using attachments in comments', :object_storage do
let(:gif_file_name) { 'banana_sample.gif' }
let(:file_to_attach) do
......
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