Commit d706c135 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch...

Merge branch '342974-failure-in-ee-browser_ui-fulfillment-purchase-purchase_ci_spec-rb-purchase-ci-minutes-adds' into 'master'

Missing selected group params causes wrong assignment of

See merge request gitlab-org/gitlab!72709
parents 96700b40 3a9e36d6
...@@ -37,7 +37,7 @@ export default { ...@@ -37,7 +37,7 @@ export default {
const { customer } = data; const { customer } = data;
return { return {
setup_for_company: data.isSetupForCompany, setup_for_company: data.isSetupForCompany,
selected_group: data.subscription.namespaceId, selected_group: data.selectedNamespaceId,
new_user: data.isNewUser, new_user: data.isNewUser,
redirect_after_success: data.redirectAfterSuccess, redirect_after_success: data.redirectAfterSuccess,
customer: { customer: {
......
...@@ -76,7 +76,7 @@ describe('Confirm Order', () => { ...@@ -76,7 +76,7 @@ describe('Confirm Order', () => {
expect(Api.confirmOrder).toHaveBeenCalledTimes(1); expect(Api.confirmOrder).toHaveBeenCalledTimes(1);
expect(Api.confirmOrder.mock.calls[0][0]).toMatchObject({ expect(Api.confirmOrder.mock.calls[0][0]).toMatchObject({
setup_for_company: true, setup_for_company: true,
selected_group: undefined, selected_group: '30',
new_user: false, new_user: false,
redirect_after_success: '/path/to/redirect/', redirect_after_success: '/path/to/redirect/',
customer: { customer: {
......
...@@ -38,7 +38,7 @@ export const stateData = { ...@@ -38,7 +38,7 @@ export const stateData = {
__typename: 'Subscription', __typename: 'Subscription',
}, },
redirectAfterSuccess: '/path/to/redirect/', redirectAfterSuccess: '/path/to/redirect/',
selectedNamespaceId: null, selectedNamespaceId: '30',
selectedPlanId: null, selectedPlanId: null,
paymentMethod: { paymentMethod: {
id: null, id: null,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment