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 Dynamic fields Test Cases #6703

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

Conversation

likhinbopanna
Copy link
Contributor

@likhinbopanna likhinbopanna commented Nov 29, 2024

Type of Change

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

Description

Added Dynamic field Test cases for cybersource connector

Additional Changes

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

Motivation and Context

Currently our automation setup doesn't have dynamic field test cases

How did you test it?

image image
  • cybersource

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

@likhinbopanna likhinbopanna added A-CI-CD Area: Continuous Integration/Deployment S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Nov 29, 2024
@likhinbopanna likhinbopanna self-assigned this Nov 29, 2024
@likhinbopanna likhinbopanna requested a review from a team as a code owner November 29, 2024 12:39
cypress-tests/cypress/support/commands.js Outdated Show resolved Hide resolved
cypress-tests/cypress/support/commands.js Outdated Show resolved Hide resolved
cypress-tests/cypress/support/commands.js Outdated Show resolved Hide resolved
@@ -0,0 +1,174 @@
import * as fixtures from "../../fixtures/imports";
import State from "../../utils/State";
import { card_credit_enabled } from "../PaymentMethodListUtils/Commons";
Copy link
Member

Choose a reason for hiding this comment

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

can we make card_credit_enabled camelCase?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have to make changes everywhere in the payment methods list tests where i have imported from

Copy link
Member

Choose a reason for hiding this comment

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

search and replace all button should go since this variable is unique, it shouldn't affect anything else. but yeah, will have to verify before going ahead with that

cypress-tests/cypress/e2e/PaymentUtils/Commons.js Outdated Show resolved Hide resolved
cypress-tests/cypress/e2e/PaymentUtils/Stripe.js Outdated Show resolved Hide resolved
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 S-waiting-on-review Status: This PR has been implemented and needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants