diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-09-20 13:00:11 +0200 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-09-20 20:00:32 +0200 |
commit | 37213cc395bd69b64ca32e58570a02435fbf0995 (patch) | |
tree | 47c392693a3be66a52438fc913d00446606a56f9 /spec | |
parent | 8612b0889482a184c366e0493ab8f17b6e324418 (diff) | |
download | gitlab-ce-37213cc395bd69b64ca32e58570a02435fbf0995.tar.gz |
Removed User Callout for Customer Experience
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/user_callout_spec.rb | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/spec/features/user_callout_spec.rb b/spec/features/user_callout_spec.rb deleted file mode 100644 index 37d66b618af..00000000000 --- a/spec/features/user_callout_spec.rb +++ /dev/null @@ -1,55 +0,0 @@ -require 'spec_helper' - -describe 'User Callouts', js: true do - let(:user) { create(:user) } - let(:another_user) { create(:user) } - let(:project) { create(:project, path: 'gitlab', name: 'sample') } - - before do - sign_in(user) - project.team << [user, :master] - end - - it 'takes you to the profile preferences when the link is clicked' do - visit dashboard_projects_path - click_link 'Check it out' - expect(current_path).to eq profile_preferences_path - end - - it 'does not show when cookie is set' do - visit dashboard_projects_path - - within('.user-callout') do - find('.close').trigger('click') - end - - visit dashboard_projects_path - - expect(page).not_to have_selector('.user-callout') - end - - describe 'user callout should appear in two routes' do - it 'shows up on the user profile' do - visit user_path(user) - expect(find('.user-callout')).to have_content 'Customize your experience' - end - - it 'shows up on the dashboard projects' do - visit dashboard_projects_path - expect(find('.user-callout')).to have_content 'Customize your experience' - end - end - - it 'hides the user callout when click on the dismiss icon' do - visit user_path(user) - within('.user-callout') do - find('.close').click - end - expect(page).not_to have_selector('.user-callout') - end - - it 'does not show callout on another users profile' do - visit user_path(another_user) - expect(page).not_to have_selector('.user-callout') - end -end |