Skip to content

Commit 04c5050

Browse files
author
Mohan Ahuja
committed
ACP2E-98: Customer with global account sharing has to login again in the secondary website when guest checkout is disabled
- Adding Fix for performance test failures
1 parent 4e02adb commit 04c5050

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Customer/view/frontend/web/js/customer-global-session-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ define([
1919
customerData.getInitCustomerData().done(function () {
2020
// Check if the customer data is set in local storage, if not reload data from server
2121
if (!customer().firstname) {
22-
customerData.reload([], false);
22+
customerData.reload(['customer', 'cart'], false);
2323
}
2424
});
2525
}

dev/tests/js/jasmine/tests/app/code/Magento/Customer/frontend/js/customer-global-session-loader.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ define([
8888

8989
deferred.resolve();
9090

91-
expect(mocks['Magento_Customer/js/customer-data'].reload).toHaveBeenCalledWith([], false);
91+
expect(mocks['Magento_Customer/js/customer-data'].reload).toHaveBeenCalledWith(['customer', 'cart'], false);
9292
});
9393

9494
it('Tests that customer data reloads if customer data is not there', function () {
@@ -103,7 +103,7 @@ define([
103103

104104
expect(mocks['Magento_Customer/js/customer-data'].get).toHaveBeenCalledWith('customer');
105105
expect(mocks['Magento_Customer/js/customer-data'].getInitCustomerData).toHaveBeenCalled();
106-
expect(mocks['Magento_Customer/js/customer-data'].reload).toHaveBeenCalledWith([], false);
106+
expect(mocks['Magento_Customer/js/customer-data'].reload).toHaveBeenCalledWith(['customer', 'cart'], false);
107107
});
108108
});
109109
});

0 commit comments

Comments
 (0)