Skip to content

feat(api_tests): Add functional tests for API - #4

Draft
NyraSama wants to merge 1 commit into
mainfrom
feat/api_tests
Draft

feat(api_tests): Add functional tests for API#4
NyraSama wants to merge 1 commit into
mainfrom
feat/api_tests

Conversation

@NyraSama

Copy link
Copy Markdown
Collaborator

No description provided.

@sonarqube-xpeho

Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
5 New issues
1 Security Hotspot
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

@PiotrFLEURY
PiotrFLEURY requested a review from Copilot November 14, 2024 10:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 7 out of 13 changed files in this pull request and generated no suggestions.

Files not reviewed (6)
  • api-tests/.env.example: Language not supported
  • api-tests/.gitignore: Language not supported
  • api-tests/features/login.feature: Language not supported
  • api-tests/features/qvst-admin.feature: Language not supported
  • api-tests/features/qvst-user.feature: Language not supported
  • api-tests/package.json: Language not supported
Comments skipped due to low confidence (3)

api-tests/features/steps/login-steps.js:37

  • [nitpick] The variable name 'res' is not descriptive. It should be renamed to 'response' for clarity and consistency.
const res = await fetch(`${BACKEND_URL}/jwt-auth/v1/token`, {

api-tests/features/steps/login-steps.js:46

  • [nitpick] The error message 'Login error:' could be more descriptive to aid debugging. Consider including more context about the error.
console.error("Login error:", error);

api-tests/features/steps/login-steps.js:62

  • [nitpick] The error message 'Token validation error:' could be more descriptive to aid debugging. Consider including more context about the error.
console.error("Token validation error:", error);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants