-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 Payment Method Id mandate flows #5035
Conversation
cypress-tests/cypress/e2e/PaymentTest/00018-MandatesUsingPMID.cy.js
Outdated
Show resolved
Hide resolved
cypress-tests/cypress/e2e/PaymentTest/00018-MandatesUsingPMID.cy.js
Outdated
Show resolved
Hide resolved
() => { | ||
it("Create No 3DS Payment Intent", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"future proofing" needs to be done.
Again, TL;DR: Add it to the beginning of every context()
cypress-tests/cypress/e2e/PaymentTest/00018-MandatesUsingPMID.cy.js
Outdated
Show resolved
Hide resolved
cypress-tests/cypress/e2e/PaymentTest/00018-MandatesUsingPMID.cy.js
Outdated
Show resolved
Hide resolved
mandate_data: null, | ||
customer_acceptance: { | ||
acceptance_type: "offline", | ||
accepted_at: "1963-05-03T04:07:52.723Z", | ||
online: { | ||
ip_address: "125.0.0.1", | ||
user_agent: "amet irure esse", | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can move these to a const
and call it like we do for singleUseMandateData
and multiUseMandateData
. Possibly put that in commons.js
and import?
This needs to be done everywhere to reduce duplicate code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can take this up later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since these changes are introduced in this PR and still need more review, I thought of getting this right in this PR itself. If other reviewers are okay with this, I've no issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This not introduced in this PR , this is replicated from mandate_id test cases , so we can have other PR for all the Tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, we should take this up in the coming PR and not leave it as it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
mandate_data: null, | ||
customer_acceptance: { | ||
acceptance_type: "offline", | ||
accepted_at: "1963-05-03T04:07:52.723Z", | ||
online: { | ||
ip_address: "125.0.0.1", | ||
user_agent: "amet irure esse", | ||
}, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here as well., below, everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, we can take refactoring later
Type of Change
Description
Added
payment_method_id
mandate flows to Cypress automation, previously onlymandate_id
flows were included.Currently implemented connectors - Cybersource , Stripe , Adyen and Bankofamerica
Additional Changes
Motivation and Context
Currently we had only mandate_id flows so added pmid mandate flows
How did you test it?
CYPRESS:
Checklist
cargo +nightly fmt --all
cargo clippy