diff options
Diffstat (limited to 'spec/views/profiles/preferences/show.html.haml_spec.rb')
-rw-r--r-- | spec/views/profiles/preferences/show.html.haml_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/views/profiles/preferences/show.html.haml_spec.rb b/spec/views/profiles/preferences/show.html.haml_spec.rb index 4e4499c3252..6e0c6d67d85 100644 --- a/spec/views/profiles/preferences/show.html.haml_spec.rb +++ b/spec/views/profiles/preferences/show.html.haml_spec.rb @@ -54,8 +54,9 @@ RSpec.describe 'profiles/preferences/show' do end it 'has helpful homepage setup guidance' do - expect(rendered).to have_field('Dashboard') - expect(rendered).to have_content('Choose what content you want to see by default on your dashboard.') + expect(rendered).to have_selector('[data-label="Dashboard"]') + expect(rendered).to have_selector("[data-description=" \ + "'Choose what content you want to see by default on your dashboard.']") end end |