Skip to main content

B. Authorization

Tests for verifying authorization of Archipelo's VS Code Extension

Revision

DateWhat's changedPerson
03.11.2022Initial version - 5 test casesMateusz 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

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

Steps

Step descriptionExpected result
1. Click on Archipelo extension icon on the sidebarSidebar 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' buttonA VS Code's modal with information to allow the extension to sign in using Archipelo appears
3. Click 'Allow' buttonA page in default browser opens and a modal asks to allow to open VS Code
4. Click 'Open Visual Studio Code' buttonA 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

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

Steps

Step descriptionExpected result
1. Click on Archipelo extension icon on the sidebarSidebar 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 paneNew editor tab appears with title 'Archipelo Project Tracking' and a button '+ Add project' for adding more projects
3. Click 'sign in' text with a linkA VS Code's modal with information to allow the extension to sign in using Archipelo appears
3. Click 'Allow' buttonA page in default browser opens and a modal asks to allow to open VS Code
4. Click 'Open Visual Studio Code' buttonA 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

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

Steps

Step descriptionExpected result
1. Click the 'Accounts' at the bottom of the sidebarContext 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' buttonA 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 sidebarVerify 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

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

Steps

Step descriptionExpected result
1. Click on Archipelo extension icon on the sidebarSidebar 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

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

Steps

Step descriptionExpected result
1. Click on the 'Accounts' at the bottom of the sidebarVerify that your name followed by '(Archipelo)' appears as one of the elements in context menu
2. Hover over this elementVerify that new menu appears on the right with 'Sign out' element
3. Click on 'Sign out' elementA 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' buttonUser becomes signed out
5. Click the 'Accounts' at the bottom of the sidebarContext menu appears with an element 'Sign in with Archipelo to use Archipelo'