diff options
author | rubenmoya <rmoyarodriguez@gmail.com> | 2019-01-05 11:27:30 +0300 |
---|---|---|
committer | rubenmoya <rmoyarodriguez@gmail.com> | 2019-01-05 11:27:30 +0300 |
commit | 2269061e7151718d750bef4bbf1348dae8ac8a4a (patch) | |
tree | 59f0dc644585b15d9e670d6f6c4378f0e416bdcc /spec/features | |
parent | ca84c8e2fd4898965e71e19e8343603404c28fe7 (diff) |
Add specs
Co-Authored-By: André Luis <aluis@gitlab.com>
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/boards/new_issue_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/features/boards/new_issue_spec.rb b/spec/features/boards/new_issue_spec.rb index 164442a47f5..d0c4534e317 100644 --- a/spec/features/boards/new_issue_spec.rb +++ b/spec/features/boards/new_issue_spec.rb @@ -86,6 +86,27 @@ describe 'Issue Boards new issue', :js do expect(page).to have_selector('.issue-boards-sidebar') end + + it 'successfuly loads labels to be added to newly created issue' do + page.within(first('.board')) do + find('.issue-count-badge-add-button').click + end + + page.within(first('.board-new-issue-form')) do + find('.form-control').set('new issue') + click_button 'Submit issue' + end + + wait_for_requests + + page.within(first('.issue-boards-sidebar')) do + find('.labels .edit-link').click + + wait_for_requests + + expect(page).to have_selector('.labels .dropdown-content li a') + end + end end context 'unauthorized user' do |