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