C. Project Tracking
Tests for project tracking in Archipelo's VS Code Extension
Revision
Date | What's changed | Person |
---|---|---|
03.11.2022 | Initial version - 2 test cases | Mateusz 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
- VS Code is opened
- Archipelo extension is installed and enabled
- User signed in
Steps
Step description | Expected result |
---|---|
1. Click on Archipelo extension icon on the sidebar | Sidebar 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 pane | New 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' button | A 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
- VS Code is opened
- Archipelo extension is installed and enabled
- User is signed in
- A project is added to tracked projects and turned off
- Extension's settings tab and sidebar pane are opened
Steps
Step description | Expected 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 tab | Nothing 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 tab | The tracked project disappears both from the settings tab and the sidebar pane of the extension |