From 1bc42ae098d3383ed16159c287ffd6834f975df5 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 10 Oct 2022 14:56:10 -0400 Subject: [PATCH] chore: tests --- .../field-types/Relationship/AddNew/index.tsx | 9 +-- test/fields/collections/Relationship/index.ts | 2 +- test/fields/e2e.spec.ts | 71 +++++++++++++++++++ 3 files changed, 77 insertions(+), 5 deletions(-) diff --git a/src/admin/components/forms/field-types/Relationship/AddNew/index.tsx b/src/admin/components/forms/field-types/Relationship/AddNew/index.tsx index 416b97dcbd..9c146c7462 100644 --- a/src/admin/components/forms/field-types/Relationship/AddNew/index.tsx +++ b/src/admin/components/forms/field-types/Relationship/AddNew/index.tsx @@ -77,12 +77,14 @@ export const AddNewRelation: React.FC = ({ path, hasMany, relationTo, val }, [modalState, modalSlug]); return hasPermission ? ( -
+
{relatedCollections.length === 1 && (