es-lynn/ip-protect-hackweek

Onboarding new users

Opened this issue · 0 comments

GIVEN that I am an admin
WHEN I go to the users page
THEN I should be able to view an 'Invite new user' button


GIVEN that I have an 'Invite new user' button
WHEN I click on it
THEN I should be able to view a form with the following fields:

  • Expiry date (optional): 1 hour, day, week
  • User identifier
  • 'Generate' button

GIVEN that I have filled up the invite user form correctly
WHEN I click the 'Generate' button
THEN

  • I should be brought to a new page with the URL link
  • a copy button
  • a QR code with the link

GIVEN that I have a copy button link
WHEN I click on the copy button
THEN

  • It should copy the link to my clipboard
  • It should pop-up/toast the words 'Copied!'