Skip to main content

C. Project Tracking

Tests for project tracking in Archipelo's VS Code Extension

Revision

DateWhat's changedPerson
03.11.2022Initial version - 2 test casesMateusz Nojek

Automation State

  • [ ] C1. Adding new project to tracked projects and interact with it
  • [ ] C2. Removing project from tracked projects

C1. Adding new project to tracked projects and interact with it

Preconditions

  1. VS Code is opened
  2. Archipelo extension is installed and enabled
  3. User signed in

Steps

Step descriptionExpected result
1. Click on Archipelo extension icon on the sidebarSidebar extends with a pane titled 'Archipelo: Settings' and a username with a 'Sign out' button next to it
2. Click on cog icon at the top of the extension paneNew editor tab appears with title 'Archipelo Project Tracking', a toggle for tracked projects and a button '+ Add project' for adding more projects
3. Click '+ Add project' buttonA system's default file chooser opens
4. Choose any directory from the file system and confirm your choice- A new element appears under 'Track Projects' header in extension's settings tab
- The element is preceded with a turned off toggle switch and followed by a trash bin icon on the right
- The element title is the name of the chosen directory
- Below the element's title is the absolute path to the project
- In the extension's pane near the sidebar there is a name of the project displayed under the username with a turned off toggle switch
5. Click on the toggle switch under 'Track Projects' header- The toggle turns on and changes color to blue both in extension's settings tab and in extension's pane next to sidebar
6. Click on the toggle switch again- The toggle turns off and changes color to gray both in extension's settings tab and in extension's pane next to sidebar

C2. Removing project from tracked projects

Preconditions

  1. VS Code is opened
  2. Archipelo extension is installed and enabled
  3. User is signed in
  4. A project is added to tracked projects and turned off
  5. Extension's settings tab and sidebar pane are opened

Steps

Step descriptionExpected result
1. Click on the toggle switch in extension's sidebar pane- The toggle turns on and changes color to blue both in extension's settings tab and in extension's pane next to sidebar
2. Click on the trash bin icon next to the tracked project in extension's settings tabNothing happens, the icon is disabled
3. Click on the toggle switch again- The toggle turns off and changes color to gray both in extension's settings tab and in extension's pane next to sidebar
- The trash bin icon is is lighter and is enabled
4. Click on the trash bin icon next to the tracked project in extension's settings tabThe tracked project disappears both from the settings tab and the sidebar pane of the extension