Skip to content

Testing invites system

IgorShadurin edited this page Jun 22, 2023 · 5 revisions

Steps for testing Invites system

  1. Open in browser https://app.fairdrive.dev.fairdatasociety.org/.
  2. Login with Metamask. No matter the network you're on, logging in with one account across different networks should function identically.
    1. Try logging in when you have a network in your Metamask other than Sepolia.
    1. Try logging in when you have Sepolia network in your Metamask.
  1. Try to create pods, upload some files, create some directories, remove certain items, and share others.
  2. Logout.
  3. Login again using different Metamask networks. All files should be available on different networks.
  4. Reset cookies and local storage for the site.
  5. Login again. And check that files are available.
  6. Navigate to the "Invite" section on the left side of the menu.
Screenshot 2023-06-10 at 11 45 40
  1. Before creating an invite, navigate to https://bbapi.fairdatasociety.org/v1/invite/inviter/YOUR_ETH_ADDRESS. In this URL, replace 'YOUR_ETH_ADDRESS' not with the Ethereum address from your Metamask, but with the address provided in the profile section (top right) of FD. This is because the wallet-controller creates using your Metamask account and may not match it exactly. Upon entering this URL, you should receive a response similar to {"status":"error","message":"Inviter does not exist with address: YOUR_ETH_ADDRESS"}.
Screenshot 2023-06-22 at 13 17 23
  1. After creating an invite with the checkbox marked, visit the URL https://bbapi.fairdatasociety.org/v1/invite/inviter/YOUR_ETH_ADDRESS again. This time, the response should be {"status":"ok","data":{"invites":1,"accounts":0}}. The number "1" next to "invites" indicates that the invite address is successfully stored. With every additional invite you create, this number should increase accordingly. If the checkbox was not marked during invite creation, this number should remain unchanged.
Screenshot 2023-06-22 at 12 20 36
  1. Share the invite in two different ways, which can be with two different invites:
  • Without finances: Simply copy the invite URL.
  • With finances: Even though it was possible to top up an invite from the page, this feature is planned to be hidden. If it's still visible, it will be removed soon. To top up an invite, copy the address of the invite, paste it into Metamask, and send a minimum of 0.0101 Sepolia ETH to it. Then copy the invite URL.
  1. Open the copied invite URL in a different browser and sign up using a new Metamask account.

  2. Start using your newly created account. Manage some data.

  3. Ensure that on most pages, you see a message prompting the user to complete their account registration. Please note, the text of this message is not final yet. The goal is to motivate users to create an FDS account by suggesting some storage bonuses.

Screenshot 2023-06-22 at 12 37 29
  1. Click on the URL suggested in the message. Make sure the "Create Account" page opens without any errors.
Screenshot 2023-06-22 at 12 37 49
  1. Create an account. Make sure that account is created using the Sepolia network.
  • Using the invite with funds: Click on the URL from the invite with funds, follow the prompts to complete account registration.
  • Using the invite without funds: Click on the URL from the invite without funds, follow the prompts to complete the account registration process.
  1. Attempt to log into Fairdrive with the newly created account: Navigate to the Fairdrive login page from Create Account and enter the login credentials for the account you just created.

  2. Verify the increment of the accounts field in the JSON response: Open the URL https://bbapi.fairdatasociety.org/v1/invite/inviter/YOUR_ETH_ADDRESS and confirm that the accounts field in the JSON response ({"status":"ok","data":{"invites":1,"accounts":1,"inviters":0}}) has increased by one. This confirms that the address of the newly created account has been successfully recorded in our database. The number should not increase if you did not select the checkbox on the first page of the Create Account process.

  3. Monitoring Global Counters: You can check the global increase in invites and account creation by visiting the URL https://bbapi.fairdatasociety.org/v1/invite/info. This URL provides information on the total number of invites created and how many of them have been used to create FDS accounts.

Error Reporting and Suggestions

If you encounter any errors or have suggestions for improvements, please create an issue in the relevant repository. You can submit issues for Fairdrive here, for the Create Account process here, and for the Bigban API here. Your feedback is crucial for enhancing and refining our system.

Clone this wiki locally