-
Notifications
You must be signed in to change notification settings - Fork 1
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
Cybersource logs #148
base: master
Are you sure you want to change the base?
Cybersource logs #148
Conversation
Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖 Please select which version do you want to release:
And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.
|
Beep boop 🤖 I noticed you didn't make any changes at the
In order to keep track, I'll create an issue if you decide now is not a good time
|
Kudos, SonarCloud Quality Gate passed! |
Cy-RunnerJira ticket automation
Cypress Dashboard
Notion documentation
Fail
|
cypress/support/testcase.js
Outdated
@@ -425,6 +445,11 @@ export function invoiceAPITestCase( | |||
|
|||
cy.getVtexItems().then(vtex => { | |||
cy.getOrderItems().then(item => { | |||
cy.qe(` |
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.
replace curl with cy.request
cypress/support/testcase.js
Outdated
@@ -339,6 +354,11 @@ export function verifyCyberSourceAPI({ | |||
cy.addDelayBetweenRetries(5000) | |||
cy.getVtexItems().then(vtex => { | |||
cy.getOrderItems().then(item => { | |||
cy.qe(` |
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.
replace curl with cy.request
cypress/support/testcase.js
Outdated
@@ -165,6 +175,11 @@ export function verifyStatusInInteractionAPI({ | |||
const [{ transactionId }] = response.body.paymentData.transactions | |||
|
|||
cy.setOrderItem(transactionIdEnv, transactionId) | |||
cy.qe(` | |||
curl --location --request GET '${vtex.baseUrl}/${transactionId}/interactions' \ |
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.
replace curl with cy.request
cypress/support/testcase.js
Outdated
@@ -157,6 +162,11 @@ export function verifyStatusInInteractionAPI({ | |||
|
|||
cy.getVtexItems().then(vtex => { | |||
cy.getOrderItems().then(item => { | |||
cy.qe(` | |||
curl --location --request GET '${vtex.baseUrl}/api/oms/pvt/orders/${item[orderIdEnv]}' \ |
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.
replace curl with cy.request
@@ -41,15 +42,19 @@ export function completePayment({ | |||
cy.getIframeBody(selectors.PaymentMethodIFrame).then($body => { | |||
if (!$body.find(selectors.CardExist).length) { | |||
// Credit cart not exist | |||
cy.qe(`Enteriing credit card number 5555 5555 5555 4444`) |
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.
Instead of entering use Type
@@ -3,6 +3,12 @@ import { FAIL_ON_STATUS_CODE, VTEX_AUTH_HEADER } from './common/constants.js' | |||
// Order Tax API Test Case | |||
Cypress.Commands.add('orderTaxApi', (requestPayload, tax) => { | |||
cy.getVtexItems().then(vtex => { | |||
cy.qe(` | |||
curl --location --request POST '${vtex.baseUrl}/cybersource/checkout/order-tax' \ |
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.
replace curl with cy.request
cypress/support/appSettings.js
Outdated
@@ -25,11 +25,27 @@ export function saveAppSettings(settings) { | |||
|
|||
export function updateCybersourceConfiguration(orderSuffix = '') { | |||
it('Update cybersource app settings', () => { | |||
cy.qe(` | |||
GetApp settings query - |
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.
For this use cy.addGraphqlLogs command
This would be available once this PR been merged - https://github.com/vtex-apps/cy-runner/pull/249/files
@@ -39,7 +44,12 @@ export function setWorkspaceInAffiliation(workspace = null, payerAuth = true) { | |||
response.body.configuration[payerAuthIndex].value = payerAuth | |||
? 'active' | |||
: 'disabled' | |||
|
|||
cy.qe(` | |||
curl --location --request PUT '${vtex.baseUrl}/api/payments/pvt/affiliations/21d78653-50d6-4b06-b553-2645e67a6f5e' \ |
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.
Replace curl with cy.request
if it is a common function then do it in cy-runner rather than here
@@ -5,6 +5,11 @@ const CYBERSOURCE_AFFILIATION_ID = '21d78653-50d6-4b06-b553-2645e67a6f5e' | |||
export function setWorkspaceInAffiliation(workspace = null, payerAuth = true) { | |||
it(`Configuring workspace as '${workspace}' in payment affiliation`, () => { | |||
cy.getVtexItems().then(vtex => { | |||
cy.qe(` | |||
curl --location --request GET '${vtex.baseUrl}/api/payments/pvt/affiliations/21d78653-50d6-4b06-b553-2645e67a6f5e' \ |
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.
Replace curl with cy.request
Added cybersource log for debugging
#changingTooling