mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 11:58:24 +02:00
🎉 Add the ability to copy team invitation link
This commit is contained in:
parent
a6b26f0563
commit
f11da06637
9 changed files with 262 additions and 135 deletions
|
@ -63,6 +63,16 @@
|
|||
(t/is (th/success? out))
|
||||
(t/is (= 1 (:call-count (deref mock)))))
|
||||
|
||||
;; get invitation token
|
||||
(let [params {::th/type :get-team-invitation-token
|
||||
:profile-id (:id profile1)
|
||||
:team-id (:id team)
|
||||
:email "foo@bar.com"}
|
||||
out (th/command! params)]
|
||||
(t/is (th/success? out))
|
||||
(let [result (:result out)]
|
||||
(contains? result :token)))
|
||||
|
||||
;; invite user with bounce
|
||||
(th/reset-mock! mock)
|
||||
|
||||
|
@ -235,8 +245,6 @@
|
|||
|
||||
)))
|
||||
|
||||
|
||||
|
||||
(t/deftest invite-team-member-with-email-verification-disabled
|
||||
(with-mocks [mock {:target 'app.emails/send! :return nil}]
|
||||
(let [profile1 (th/create-profile* 1 {:is-active true})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue