Altalogy / tari

The Tari protocol
https://tari.com
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

feat: onboarding docker install step #314

Closed tomaszantas closed 2 years ago

tomaszantas commented 2 years ago

Description

Motivation and Context

23

How Has This Been Tested?

(*) Invert the return value in src/commands/index.ts # isDockerInstalled by adding ! to mock the Docker detection.


Scenario 1 - Docker is already installed

  1. Start the application and wait.
  2. You should see I need a few minutes for further configuration

Scenario 2 - Docker is missing and will be installed

  1. Make change described under (*), so we are in state when Docker is not installed
  2. Start the application
  3. You should reach the message with a link to the Docker docs.

Now, there are variants:

A) Docker installation may require system reboot, so after we run launchpad again, we should jump right to the step after the docker installation (skip intro and docker install steps)

a) close launchpad b) revert the change described under (*) and made in step 1 c) start launchpad again d) you should see Easy peasy... message

B) Docker installation doesn't require to reboot system and the launchpad.

a) revert the change described under (*) and made in step 1 b) the application run interval that checks whether the docker is installed. Wait a few seconds and the interval should pick up the change. c) you should see Easy peasy... message


Scenario 3 - Docker is missing and will NOT be installed

  1. Make change described under (*), so we are in state when Docker is not installed
  2. Start the application
  3. You should reach the message with a link to the Docker docs.
  4. Close application
  5. Start application
  6. You should see intro steps and docker install steps again.