diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2015-12-15 14:02:28 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2015-12-15 14:02:28 +0000 |
commit | 4493d3fd556af6ded47f940f258b0fc26c9eb3e8 (patch) | |
tree | 3879f17a3a175e13d7ebaf33dc2b06a1e6ad4f6b /features/steps/project | |
parent | 9451db3819ae45734c4343e55a74d347cdacf70d (diff) | |
parent | 8fe821cfa5acea2a4ab1fce7f35a76455d5a1cac (diff) | |
download | gitlab-ce-4493d3fd556af6ded47f940f258b0fc26c9eb3e8.tar.gz |
Merge branch 'tests/note-polling' into 'master'
Add feature specs for note polling
Ref. #4032, !2084
cc @rspeicher
See merge request !2086
Diffstat (limited to 'features/steps/project')
-rw-r--r-- | features/steps/project/issues/issues.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/features/steps/project/issues/issues.rb b/features/steps/project/issues/issues.rb index a13044c3ae1..4a7ff21d385 100644 --- a/features/steps/project/issues/issues.rb +++ b/features/steps/project/issues/issues.rb @@ -284,6 +284,16 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps end end + step 'another user adds a comment with text "Yay!" to issue "Release 0.4"' do + issue = Issue.find_by!(title: 'Release 0.4') + create(:note_on_issue, noteable: issue, note: 'Yay!') + end + + step 'I should see a new comment with text "Yay!"' do + page.within '#notes' do + expect(page).to have_content('Yay!') + end + end def filter_issue(text) fill_in 'issue_search', with: text end |