diff options
Diffstat (limited to 'qa/qa/specs/features/browser_ui/2_plan/issue/create_issue_spec.rb')
-rw-r--r-- | qa/qa/specs/features/browser_ui/2_plan/issue/create_issue_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/qa/qa/specs/features/browser_ui/2_plan/issue/create_issue_spec.rb b/qa/qa/specs/features/browser_ui/2_plan/issue/create_issue_spec.rb index 7b4418191a3..57b0859856e 100644 --- a/qa/qa/specs/features/browser_ui/2_plan/issue/create_issue_spec.rb +++ b/qa/qa/specs/features/browser_ui/2_plan/issue/create_issue_spec.rb @@ -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 |