Skip to content

test: add e2e test framework

Désirée Chevalier requested to merge dc-add-e2e-framework into main

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?

  1. Clone this branch
  2. cd gitlab-vscode-extension
  3. npm ci
  4. npm run package
  5. ensure vsix file generated
  6. cd test/e2e
  7. npm install
  8. 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

Merge request reports