fix ShareProjectModal test case for non project owners cases

GitOrigin-RevId: 413de85b57e638defb5d240bd6275126e75a4114
This commit is contained in:
M Fahru 2022-07-08 08:01:49 -04:00 committed by Copybot
parent 114b275e3b
commit 3990e182d7

View file

@ -212,6 +212,10 @@ describe('<ShareProjectModal/>', function () {
publicAccesLevel: 'tokenBased',
},
}}
user={{
id: 'non-project-owner',
email: 'non-project-owner@example.com',
}}
>
<ShareProjectModal {...modalProps} />
</EditorProviders>
@ -237,6 +241,10 @@ describe('<ShareProjectModal/>', function () {
publicAccesLevel: 'private',
},
}}
user={{
id: 'non-project-owner',
email: 'non-project-owner@example.com',
}}
>
<ShareProjectModal {...modalProps} />
</EditorProviders>