test: add e2e test framework
Description
Adds e2e framework and simple auth test to gitlab-vscode-extension
- Tests are for authorization with a valid and an invalid token.
- Creates an Allure report with screenshots of failures and keeps it for 10 days in artifacts.
Part of https://gitlab.com/gitlab-com/gitlab-OKRs/-/work_items/6480 & #1224 (closed) & #1128 (closed) & #1129 (closed)
Related Issues
Resolves #1128 (closed), #1129 (closed), #1224 (closed)
How has this been tested?
- Clone this branch
cd gitlab-vscode-extension
npm ci
npm run package
- ensure vsix file generated
cd test/e2e
npm install
TEST_GITLAB_TOKEN=<PAT with code suggestion access> npm run test:e2e
Screenshots (if appropriate)
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap
Edited by Désirée Chevalier