Files
dexorder/Regression test.md
2024-01-09 12:06:12 -08:00

1.4 KiB

We currently do not have an automated regression test for the app, i.e. GUI. Please use this procedure to manually test:

Kill previous execution:

  1. Ctl-C previous make to kill all servers.
  2. Use Chrome browser.
  3. Reset MetaMask.
  4. Quit Chrome.

Start server an page:

  1. use make to start all servers.
  2. Wait until the script prints "done"
  3. Start Chrome.
  4. Log into MetaMask. Check that tokens are populated.
  5. Open "localhost:3000".
  6. You should be a the vault page.

Vault creation and funding:

  1. Wait until vault has been created.
  2. Click the Gib button and wait until the vault has been funded.

Vault withdraw:

  1. Click the three dots to the right of the MEH balance and withdraw 1.
  2. MetaMask will pop up to ask you to confirm the withdraw transaction. Confirm.
  3. Go to MetaMask and observe that 1 MEH has been transferred. It might take a few seconds.

Vault receive:

  1. Now from MetaMask, send 1 WETH to your vault.
  2. Confirm on the vault page that the WETH has been received.

TWAP submission:

  1. Use the menu to the DCA/TWAP page (localhost:3000/twap)
  2. Change the amount in default transaction to 1 and place the order.
  3. MetaMask will pop up and ask you to confirm the transaction. Confirm.

TWAP operation:

  1. The app will switch to the order page.
  2. Observe your order in the list.
  3. Observe three tranches fill within 1 minute.