-
Notifications
You must be signed in to change notification settings - Fork 2
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
CC-34716: Cart Reorder + Order Amendment features. #27
CC-34716: Cart Reorder + Order Amendment features. #27
Conversation
} | ||
]; | ||
|
||
// Generate products dynamically |
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.
Minor: generate products, customers, etc would be better to move to a separate methods just for readability
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.
It should be reworked in next phase. For now I would keep it as it is.
helpers/summary-helper.js
Outdated
} | ||
} | ||
|
||
function handleSummaryTesting(data) { |
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.
Minor:
function handleSummaryTesting(data) { | |
function _handleSummaryTesting(data) { |
As I understand it is used in this class only
_getPaymentProviderName() { | ||
return 'DummyPayment'; | ||
_getPaymentProviderName(isMpPaymentProvider = true) { | ||
return isMpPaymentProvider ? 'DummyPayment' : 'DummyPayment'; |
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.
the same values
const customerIndex = (__VU - 1) % data.length; | ||
const { customerEmail, quoteIds } = data[customerIndex]; | ||
const quoteIndex = __ITER % quoteIds.length; | ||
|
||
// Place an order | ||
const checkoutResponseJson = sharedCheckoutScenario.haveOrder(customerEmail, quoteIds[quoteIndex], false); |
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.
It is repeated everywhere, does it make sense to move to a helper?
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.
If it would be a helper in AbstractScenario, this class will be a rich model with N helpers, I would avoid it. Instead of helper, we could reuse scenario methods.
PR Description
Add a meaningful description here that will let us know what you want to fix with this PR or what functionality you want to add.
Steps before you submit a PR
contribution-license-agreement.txt
file with the following content:I hereby agree to Spryker\'s Contribution License Agreement in https://github.com/spryker/commerce-k6-performance-tests/blob/HASH_OF_COMMIT_YOU_ARE_BASING_YOUR_BRANCH_FROM_MASTER_BRANCH/CONTRIBUTING.md.
This is a mandatory step to make sure you are aware of the license agreement and agree to it.
HASH_OF_COMMIT_YOU_ARE_BASING_YOUR_BRANCH_FROM_MASTER_BRANCH
is a hash of the commit you are basing your branch from the master branch. You can take it from commits list of master branch before you submit a PR.Checklist