diff --git a/spec/accessibility_spec.rb b/spec/accessibility_spec.rb index b5caee6..585d1b7 100644 --- a/spec/accessibility_spec.rb +++ b/spec/accessibility_spec.rb @@ -48,7 +48,7 @@ ALL_PAGES.each do |path| describe "#{path} is accessible", :js, type: :feature do - context 'light mode' do + context 'when light mode' do before do visit(path) page.execute_script('jtd.setTheme("light")') @@ -57,7 +57,7 @@ include_context 'a11y tests' end - context 'dark mode' do + context 'when dark mode' do before do visit(path) page.execute_script('jtd.setTheme("dark")')