diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-10 12:08:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-10 12:08:35 +0300 |
commit | 23ff717a29540bb1d4b0068f164b5f9df99386bf (patch) | |
tree | 1d31f1766f3a5e4748cd806cf655d72d35cb59dc /spec/features/action_cable_logging_spec.rb | |
parent | c2879da99d02b4e49a1394f5699a2963f2651f18 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/action_cable_logging_spec.rb')
-rw-r--r-- | spec/features/action_cable_logging_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/action_cable_logging_spec.rb b/spec/features/action_cable_logging_spec.rb index ba99405a51a..ce7c0e03aad 100644 --- a/spec/features/action_cable_logging_spec.rb +++ b/spec/features/action_cable_logging_spec.rb @@ -33,5 +33,15 @@ RSpec.describe 'ActionCable logging', :js do gitlab_sign_in(user) visit project_issue_path(project, issue) + + # Because there is no visual indicator for Capybara to wait on before closing the browser, + # we need to test an actual feature to ensure that the subscription was already established. + + expect(page.find('.assignee')).to have_content 'None' + + fill_in 'note[note]', with: "/assign #{user.username}" + click_button 'Comment' + + expect(page.find('.assignee')).to have_content user.name end end |