summaryrefslogtreecommitdiff
path: root/spec/features/user_callout_spec.rb
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-02-17 11:28:52 -0600
committerJose Ivan Vargas <jvargas@gitlab.com>2017-02-23 15:47:23 -0600
commitbcab4bb5efd1cc499dc7d753115fe91b98f27bda (patch)
tree712923e168785037162b4c96fe6c9705db84fa4c /spec/features/user_callout_spec.rb
parent19a21107d7f4a256271306ae10bb376dfbc8bbad (diff)
downloadgitlab-ce-bcab4bb5efd1cc499dc7d753115fe91b98f27bda.tar.gz
Changed the javascript class from using the global scope to exporting it via webpack
Also improved accesibility and change the id from user_callouts to a class
Diffstat (limited to 'spec/features/user_callout_spec.rb')
-rw-r--r--spec/features/user_callout_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/user_callout_spec.rb b/spec/features/user_callout_spec.rb
index 7077ac2fc54..53a87d3c224 100644
--- a/spec/features/user_callout_spec.rb
+++ b/spec/features/user_callout_spec.rb
@@ -18,18 +18,18 @@ describe 'User Callouts', js: true do
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'
+ 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'
+ 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
+ within('.user-callout') do
find('.dismiss-icon').click
end
expect(page).not_to have_selector('#user-callout')