-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(Cypress): Add routing test #4768
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
Conversation
cy.createConnectorWithNameCallTest( | ||
createConnectorBody, | ||
"adyen", | ||
"payment_processor", | ||
globalState, | ||
); | ||
}); | ||
|
||
it("stripe-connector-create-call-test", () => { | ||
cy.createConnectorWithNameCallTest( | ||
createConnectorBody, | ||
"stripe", | ||
"payment_processor", | ||
globalState, | ||
); | ||
}); |
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.
Is this function used at multiple places?
If only added for routing test cases still it should be configurable, once discuss this with @vspecky
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.
LGTM
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.
Other than that, LGTM
before("seed global state", () => { | ||
cy.task("getGlobalState").then((state) => { | ||
globalState = new State(state); | ||
console.log("seeding globalState -> " + JSON.stringify(globalState)); |
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.
Can you please remove all the console logs that exposes globalState
.
That includes cy.task("cli_log")
stuffs as well. Let's keep that them only for debugging.
}); | ||
}); | ||
after("flush global state", () => { | ||
console.log("flushing globalState -> " + JSON.stringify(globalState)); |
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.
before("seed global state", () => { | ||
cy.task("getGlobalState").then((state) => { | ||
globalState = new State(state); | ||
console.log("seeding globalState -> " + JSON.stringify(globalState)); |
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.
}); | ||
}); | ||
after("flush global state", () => { | ||
console.log("flushing globalState -> " + JSON.stringify(globalState)); |
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.
before("seed global state", () => { | ||
cy.task("getGlobalState").then((state) => { | ||
globalState = new State(state); | ||
console.log("seeding globalState -> " + JSON.stringify(globalState)); |
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.
}); | ||
|
||
after("flush global state", () => { | ||
console.log("flushing globalState -> " + JSON.stringify(globalState)); |
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.
console.log("seeding globalState -> " + JSON.stringify(globalState)); | ||
cy.task( | ||
"cli_log", | ||
"SEEDING GLOBAL STATE -> " + JSON.stringify(globalState), | ||
); |
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.
Remove these
cy.task( | ||
"cli_log", | ||
" FLUSHING GLOBAL STATE -> " + JSON.stringify(globalState), | ||
); |
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.
Remvoe L29 and these.
…o cypress-payout-fix * 'main' of github.com:juspay/hyperswitch: feat(Cypress): Add routing test (#4768) feat(connector): [BOA] Handle refund status 201 (#4908) * 'main' of github.com:juspay/hyperswitch: feat(Cypress): Add routing test (#4768) feat(connector): [BOA] Handle refund status 201 (#4908)
Type of Change
Description
Add service level test for Routing
Additional Changes
Motivation and Context
How did you test it?
Tested through Cypress

Checklist
cargo +nightly fmt --all
cargo clippy