diff --git a/spec/components/all_components_spec.rb b/spec/components/all_components_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/components/all_components_spec.rb
+++ b/spec/components/all_components_spec.rb
@@ -18,7 +18,9 @@ describe "All components" do
         expect(yaml["name"]).not_to be_nil
         expect(yaml["description"]).not_to be_nil
         expect(yaml["examples"]).not_to be_nil
-        expect(yaml["accessibility_criteria"]).not_to be_nil
+        expect(
+          yaml["accessibility_criteria"] || yaml["shared_accessibility_criteria"]
+        ).not_to be_nil
       end
 
       it "has the correct class in the ERB template",
Allow shared_accessibility_criteria to fulfill need

When a components accessibility has only shared accessibility criterias
it doesn't seem necessary to force typing some in.