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

ci(cypress): Add field level verification #6153

Merged
merged 8 commits into from
Oct 9, 2024
Merged

Conversation

Gnanasundari24
Copy link
Contributor

Type of Change

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

Description

Added assertions to validate individual field values in the CreatePayment, ConfirmPayment, and RetrievePayment flows for Stripe.

Motivation and Context

Verify individual field values in Cypress tests for enhanced accuracy

How did you test it?

Ran locally

Screenshot 2024-09-30 at 3 41 55 AM Screenshot 2024-09-30 at 3 42 38 AM Screenshot 2024-09-30 at 3 42 53 AM Screenshot 2024-09-30 at 3 43 09 AM Screenshot 2024-09-30 at 3 43 26 AM

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@Gnanasundari24 Gnanasundari24 requested a review from a team as a code owner September 29, 2024 22:38
Copy link

semanticdiff-com bot commented Sep 29, 2024

Review changes with SemanticDiff.

Analyzed 4 of 4 files.

Overall, the semantic diff is 19% smaller than the GitHub diff.

1 files do not contain logic changes.

Filename Status
✔️ cypress-tests/.prettierrc.json 66.67% smaller
✔️ cypress-tests/cypress/support/commands.js 22.33% smaller
✔️ cypress-tests/cypress/e2e/PaymentUtils/Nexixpay.js No logic changes found
✔️ cypress-tests/cypress/e2e/PaymentUtils/Stripe.js 1.99% smaller

@Gnanasundari24 Gnanasundari24 self-assigned this Sep 29, 2024
@Gnanasundari24 Gnanasundari24 added A-CI-CD Area: Continuous Integration/Deployment C-test Category: Tests labels Sep 29, 2024
@Gnanasundari24 Gnanasundari24 added this to the September 2024 Release milestone Sep 29, 2024
likhinbopanna
likhinbopanna previously approved these changes Oct 3, 2024
Copy link
Member

@pixincreate pixincreate left a comment

Choose a reason for hiding this comment

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

other than that, lgtm

cypress-tests/cypress/support/commands.js Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

nit:

if you don't mind, can the assertion changes be applied to all the assertions in this file?

Copy link
Member

Choose a reason for hiding this comment

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

this can be taken up as a separate pr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this is a significant change, I thought it would be better to go with a patch update rather than updating everything at once

@likhinbopanna likhinbopanna added this pull request to the merge queue Oct 9, 2024
Merged via the queue into main with commit edd0998 Oct 9, 2024
16 of 17 checks passed
@likhinbopanna likhinbopanna deleted the field_validation branch October 9, 2024 07:37
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 C-test Category: Tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants