B. Authorization
Tests for verifying authorization of Archipelo's VS Code Extension
Revision
Date | What's changed | Person |
---|---|---|
03.11.2022 | Initial version - 5 test cases | Mateusz Nojek |
Automation State
- [ ] B1. Sign in from extension's sidebar
- [ ] B2. Sign in from extension's settings tab
- [ ] B3. Sign in from VS Code's Accounts panel on Sidebar
- [ ] B4. User can signed out through extension's sidebar pane
- [ ] B5. User can signed out through Accounts panel on Sidebar
B1. Sign in from extension's sidebar
Preconditions
- VS Code is opened
- Archipelo extension is installed and enabled
- User is signed out
Steps
Step description | Expected result |
---|---|
1. Click on Archipelo extension icon on the sidebar | Sidebar extends with a pane titled 'Archipelo: Settings' and a box with text description and 'Sign in to Archipelo' button |
2. Click 'Sign in to Archipelo' button | A VS Code's modal with information to allow the extension to sign in using Archipelo appears |
3. Click 'Allow' button | A page in default browser opens and a modal asks to allow to open VS Code |
4. Click 'Open Visual Studio Code' button | A VS Code's modal asks to allow the extension to open the URI |
5. Click 'Open' button | - State of the extension changes and the user is now signed in - Username is displayed at the top of the extension's sidebar pane - 'Sign out' button is visible next to the username |
B2. Sign in from extension's settings tab
Preconditions
- VS Code is opened
- Archipelo extension is installed and enabled
- User is signed out
Steps
Step description | Expected result |
---|---|
1. Click on Archipelo extension icon on the sidebar | Sidebar extends with a pane titled 'Archipelo: Settings' and a box with text description and 'Sign in to Archipelo' button |
2. Click on cog icon at the top of the extension pane | New editor tab appears with title 'Archipelo Project Tracking' and a button '+ Add project' for adding more projects |
3. Click 'sign in' text with a link | A VS Code's modal with information to allow the extension to sign in using Archipelo appears |
3. Click 'Allow' button | A page in default browser opens and a modal asks to allow to open VS Code |
4. Click 'Open Visual Studio Code' button | A VS Code's modal asks to allow the extension to open the URI |
5. Click 'Open' button | - State of the extension changes and the user is now signed in - Username is displayed at the top of the extension's sidebar pane - 'Sign out' button is visible next to the username - The text with a 'sign in' linked text disappears |
B3. Sign in from VS Code's Accounts panel on Sidebar
Preconditions
- VS Code is opened
- Archipelo extension is installed and enabled
- User is signed out
Steps
Step description | Expected result |
---|---|
1. Click the 'Accounts' at the bottom of the sidebar | Context menu appears with an element 'Sign in with Archipelo to use Archipelo' |
2. Click on 'Sign in to Archipelo to use Archipelo' | A page in default browser opens and a modal asks to allow to open VS Code |
3. Click 'Open Visual Studio Code' button | A VS Code's modal asks to allow the extension to open the URI |
4. Click 'Open' button | - State of the extension changes and the user is now signed in - Username is displayed at the top of the extension's sidebar pane - 'Sign out' button is visible next to the username |
5. Click again on the 'Accounts' at the bottom of the sidebar | Verify that your name followed by '(Archipelo)' appears as one of the elements in context menu |
B4. User can signed out through extension's sidebar pane
Preconditions
- VS Code is opened
- Archipelo extension is installed and enabled
- User is 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 box with username and a 'Sign out' button |
2. Click 'Sign out' button | - User becomes signed out - A box with text description and 'Sign in to Archipelo' button appears |
B5. User can signed out through Accounts panel on Sidebar
Preconditions
- VS Code is opened
- Archipelo extension is installed and enabled
- User is signed in
Steps
Step description | Expected result |
---|---|
1. Click on the 'Accounts' at the bottom of the sidebar | Verify that your name followed by '(Archipelo)' appears as one of the elements in context menu |
2. Hover over this element | Verify that new menu appears on the right with 'Sign out' element |
3. Click on 'Sign out' element | A modal appears with a question to confirm the action of signing out from the extension and a 'Sign Out' button |
4. Click on 'Sign out' button | User becomes signed out |
5. Click the 'Accounts' at the bottom of the sidebar | Context menu appears with an element 'Sign in with Archipelo to use Archipelo' |