Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cypress): valdiate error_code and error_message and make it visible in reports #6913

Merged
merged 4 commits into from
Dec 23, 2024

Conversation

pixincreate
Copy link
Member

@pixincreate pixincreate commented Dec 21, 2024

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

This PR introduces error code and error message validations.
This nullifies the need to re-run the ci check manually in local every the check just to see the reason for the failure.
With that, error_code and error_message will now be printed in the ui in every run and hence, this makes the generated reports more reliable.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

i want reports to serve a purpose and reliable.

How did you test it?

when a ci check fail, especially from the connectors' end, ci takes a screenshot of the ui, as usual, but that will now contain the error code and message.

since adyen yet again got into some issues with save card flow, it is possible to test my changes directly without the need to make any modifications to the test:

image

Checklist

  • I formatted the code prettier . --write
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@pixincreate pixincreate added A-CI-CD Area: Continuous Integration/Deployment S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Dec 21, 2024
@pixincreate pixincreate added this to the December 2024 Release milestone Dec 21, 2024
@pixincreate pixincreate self-assigned this Dec 21, 2024
Copy link

semanticdiff-com bot commented Dec 21, 2024

Review changes with  SemanticDiff

Changed Files
File Status
  cypress-tests/cypress/support/commands.js  88% smaller

@pixincreate pixincreate linked an issue Dec 21, 2024 that may be closed by this pull request
@pixincreate pixincreate marked this pull request as ready for review December 21, 2024 07:59
@pixincreate pixincreate requested a review from a team as a code owner December 21, 2024 07:59
… functino for reusing

functions added in `commands.js` will be moved to a separate folder file
and possibly take out some of the functions from `Utils.js`
@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue Dec 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 23, 2024
@pixincreate
Copy link
Member Author

re-adding to queue. i had to re-run ci test since it came out of queue due to failure of cypress test

@pixincreate pixincreate added this pull request to the merge queue Dec 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 23, 2024
@pixincreate pixincreate added this pull request to the merge queue Dec 23, 2024
Merged via the queue into main with commit 46b2bfe Dec 23, 2024
17 of 19 checks passed
@pixincreate pixincreate deleted the error-in-report branch December 23, 2024 18:26
@pixincreate pixincreate removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI-CD Area: Continuous Integration/Deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] show error code and message in cypress reports
3 participants