From 85ddbfc6506bba3851885f18a186abd691653f36 Mon Sep 17 00:00:00 2001 From: Nell Hardcastle Date: Fri, 8 Nov 2024 14:39:29 -0800 Subject: [PATCH] tests(app): Integration test UpdatePermissions component based on input type --- .../update-permissions.spec.jsx.snap | 17 ++- .../__tests__/update-permissions.spec.jsx | 100 ++++++++++++++++-- 2 files changed, 107 insertions(+), 10 deletions(-) diff --git a/packages/openneuro-app/src/scripts/dataset/mutations/__tests__/__snapshots__/update-permissions.spec.jsx.snap b/packages/openneuro-app/src/scripts/dataset/mutations/__tests__/__snapshots__/update-permissions.spec.jsx.snap index a7e905e71..5c4f721d1 100644 --- a/packages/openneuro-app/src/scripts/dataset/mutations/__tests__/__snapshots__/update-permissions.spec.jsx.snap +++ b/packages/openneuro-app/src/scripts/dataset/mutations/__tests__/__snapshots__/update-permissions.spec.jsx.snap @@ -1,6 +1,19 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`UpdateDatasetPermissions mutation > renders with default props 1`] = ` +exports[`UpdateDatasetPermissions mutation > calls UPDATE_ORCID_PERMISSIONS when clicked with an ORCID 1`] = ` + + + +`; + +exports[`UpdateDatasetPermissions mutation > calls UPDATE_PERMISSIONS when clicked with an email address 1`] = `