diff --git a/spec/components/identity/token/scope_component_spec.rb b/spec/components/identity/token/scope_component_spec.rb index bb0c1e6..27cba72 100644 --- a/spec/components/identity/token/scope_component_spec.rb +++ b/spec/components/identity/token/scope_component_spec.rb @@ -11,7 +11,8 @@ end it 'does not hide the scope from screen readers' do - expect(rendered).not_to have_css('[aria-hidden="true"]') + + expect(rendered).not_to have_selector('div[aria-hidden="true"]') end end @@ -25,7 +26,7 @@ end it 'hides the scope from screen readers' do - expect(rendered).to have_css('[aria-hidden="true"]') + expect(rendered).to have_selector('div[aria-hidden="true"]') end end end