Implement E2E test that covers happy path in the Workspaces UI

Preconditions

  • The user is member of at least one project.
  • The project is a member of a group that contains one or more cluster agents.
  • The project repository contains a valid .devfile.yaml file.

Happy path flow

These are the steps in the Happy Path scenario implemented in the Workspaces MVC

  1. User accesses their workspaces by selecting "Workspaces" in the "Your work" menu.
  2. There aren’t workspaces created yet therefore the user sees the Empty State illustration.
  3. User clicks the "New workspace" button which navigates to the new Workspace screen.
  4. The user selects a project that satisfies the preconditions.
  5. The user selects a cluster agent.
  6. The user selects "Create Workspace" button.
  7. The workspaces is created and the user is redirected to the Workspaces List.
  8. The user sees the workspace created in the Workspaces list.
  9. The workspace transitions to the Running state eventually.
  10. The user stops the workspace by selecting the "Stop" button.
  11. The workspace transitions to the "Stopped" eventually.
  12. The user terminates the workspace by selecting the "Terminate" button.
  13. Terminated workspaces appear in the Workspaces list with a status-cancelled icon.
  14. Terminated workspaces appear after Workspaces with other statuses in the Workspaces list.
Edited by Enrique Alcántara