Skip to content

Commit f16c7de

Browse files
authored
Merge branch '2.4.4-develop' into ph-delivery
2 parents 308537b + 76ff162 commit f16c7de

16 files changed

+168
-33
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AssertProductImageStorefrontProductPage2ActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919

2020
<seeInCurrentUrl url="/{{product.custom_attributes[url_key]}}.html" stepKey="checkUrl"/>
2121
<waitForPageLoad stepKey="waitForPageLoad"/>
22-
<seeElement selector="{{StorefrontProductMediaSection.imageFile(image.filename)}}" stepKey="seeImage"/>
22+
<waitForElementVisible selector="{{StorefrontProductMediaSection.imageFile(image.filename)}}" stepKey="seeImage"/>
2323
</actionGroup>
2424
</actionGroups>

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AssertProductImageStorefrontProductPageActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
<seeInCurrentUrl url="/{{product.urlKey}}.html" stepKey="checkUrl"/>
2121
<waitForPageLoad stepKey="waitForPageLoad"/>
22+
<waitForElement selector="{{StorefrontProductMediaSection.imageFile(image.filename)}}" stepKey="waitForImage"/>
2223
<seeElement selector="{{StorefrontProductMediaSection.imageFile(image.filename)}}" stepKey="seeImage"/>
2324
</actionGroup>
2425
</actionGroups>

app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontSignOutActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
<click selector="{{StoreFrontSignOutSection.customerAccount}}" stepKey="clickCustomerButton"/>
1717
<click selector="{{StoreFrontSignOutSection.signOut}}" stepKey="clickToSignOut"/>
1818
<waitForPageLoad stepKey="waitForPageLoad"/>
19-
<see userInput="You are signed out" stepKey="signOut"/>
19+
<waitForText userInput="You are signed out" stepKey="signOut"/>
2020
</actionGroup>
2121
</actionGroups>

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontCustomerCheckoutWithNewCustomerRegistrationAndDisableGuestCheckoutTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
<actionGroup ref="StorefrontFillCustomerAccountCreationFormActionGroup" stepKey="createNewCustomerAccount">
6363
<argument name="customer" value="Simple_US_Customer" />
6464
</actionGroup>
65-
<click stepKey="clickCreateAccountButton" selector="{{StorefrontCustomerCreateFormSection.createAccountButton}}"/>
66-
<waitForPageLoad stepKey="waitForCreateAccountButtonToLoad"/>
65+
<actionGroup ref="StorefrontClickCreateAnAccountCustomerAccountCreationFormActionGroup" stepKey="clickCreateAccountButton"/>
66+
<comment userInput="BIC workaround" stepKey="waitForCreateAccountButtonToLoad"/>
6767

6868
<!--Assert customer information-->
6969
<see stepKey="seeThankYouMessage" userInput="Thank you for registering with Main Website Store."/>

app/code/Magento/ConfigurableProduct/Test/Mftf/ActionGroup/AssertOptionImageAndPriceInStorefrontProductActionGroup.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
</arguments>
2020

2121
<selectOption userInput="{{label}}" selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" stepKey="selectOption"/>
22-
<seeElement selector="{{StorefrontProductMediaSection.imageFile(image)}}" stepKey="seeImage"/>
22+
<waitForPageLoad stepKey="waitForOptionLoad"/>
23+
<waitForElementVisible selector="{{StorefrontProductMediaSection.imageFile(image)}}" stepKey="seeImage"/>
2324
<see userInput="{{price}}" selector="{{StorefrontProductInfoMainSection.price}}" stepKey="seeProductPrice"/>
2425
</actionGroup>
2526
</actionGroups>

app/code/Magento/ConfigurableProduct/Test/Mftf/ActionGroup/AssertOptionImageInStorefrontProductPageActionGroup.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<seeInCurrentUrl url="/{{product.urlKey}}.html" stepKey="checkUrl"/>
2222
<waitForPageLoad stepKey="waitForPageLoad"/>
2323
<selectOption userInput="{{label}}" selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" stepKey="selectOption1"/>
24-
<seeElement selector="{{StorefrontProductMediaSection.imageFile(image.filename)}}" stepKey="seeFirstImage"/>
24+
<waitForPageLoad stepKey="waitForOptionLoad"/>
25+
<waitForElementVisible selector="{{StorefrontProductMediaSection.imageFile(image.filename)}}" stepKey="seeFirstImage"/>
2526
</actionGroup>
2627
</actionGroups>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/StorefrontVisibilityOfDuplicateProductTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,11 @@
212212
<see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="$$createConfigProduct.name$$-Updated" stepKey="seeConfigurableProductName"/>
213213
<see userInput="{{productAttributeColor.default_label}}" selector="{{StorefrontProductInfoMainSection.productAttributeTitle1}}" stepKey="seeColorAttributeName"/>
214214
<selectOption selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" userInput="{{colorConfigurableProductAttribute1.name}}" stepKey="selectFirstOption"/>
215+
<waitForPageLoad stepKey="waitForFirstOptionLoad"/>
215216
<see userInput="{{virtualProductWithRequiredFields.price}}" selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="assertFirstOptionProductPrice"/>
216217
<seeElement selector="{{StorefrontProductMediaSection.imageFile(MagentoLogo.filename)}}" stepKey="seeFirstImage"/>
217218
<selectOption selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" userInput="{{colorConfigurableProductAttribute1.name}}" stepKey="selectSecondOption"/>
219+
<waitForPageLoad stepKey="waitForSecondOptionLoad"/>
218220
<see userInput="{{virtualProductWithRequiredFields.price}}" selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="seeSecondOptionProductPrice"/>
219221
<seeElement selector="{{StorefrontProductMediaSection.imageFile(MagentoLogo.filename)}}" stepKey="seeSecondImage"/>
220222
</test>

app/code/Magento/Customer/Test/Mftf/ActionGroup/StorefrontSignOutActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
<click selector="{{StoreFrontSignOutSection.customerAccount}}" stepKey="clickCustomerButton"/>
1717
<click selector="{{StoreFrontSignOutSection.signOut}}" stepKey="clickToSignOut"/>
1818
<waitForPageLoad stepKey="waitForPageLoad"/>
19-
<see userInput="You are signed out" stepKey="signOut"/>
19+
<waitForText userInput="You are signed out" stepKey="signOut"/>
2020
</actionGroup>
2121
</actionGroups>

app/code/Magento/Customer/Test/Mftf/Test/AdminChangeCustomerGenderInCustomersGridTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
</annotations>
2222
<before>
2323
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
24+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
25+
<argument name="indices" value="customer_grid"/>
26+
</actionGroup>
2427
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
2528
</before>
2629
<after>

app/code/Magento/Customer/view/frontend/web/js/customer-data.js

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ define([
1717
], function ($, _, ko, sectionConfig, url) {
1818
'use strict';
1919

20-
var options = {
21-
cookieLifeTime: 86400 //1 day by default
22-
},
20+
var options = {},
2321
storage,
2422
storageInvalidation,
2523
invalidateCacheBySessionTimeOut,
@@ -32,22 +30,6 @@ define([
3230
url.setBaseUrl(window.BASE_URL);
3331
options.sectionLoadUrl = url.build('customer/section/load');
3432

35-
/**
36-
* Storage initialization
37-
*/
38-
function initStorage() {
39-
$.cookieStorage.setConf({
40-
path: '/',
41-
expires: new Date(Date.now() + parseInt(options.cookieLifeTime, 10) * 1000),
42-
samesite: 'lax'
43-
});
44-
storage = $.initNamespaceStorage('mage-cache-storage').localStorage;
45-
storageInvalidation = $.initNamespaceStorage('mage-cache-storage-section-invalidation').localStorage;
46-
}
47-
48-
// Initialize storage with default parameters to prevent JS errors while component still not initialized
49-
initStorage();
50-
5133
/**
5234
* @param {Object} invalidateOptions
5335
*/
@@ -234,7 +216,14 @@ define([
234216
/**
235217
* Storage init
236218
*/
237-
initStorage: initStorage,
219+
initStorage: function () {
220+
$.cookieStorage.setConf({
221+
path: '/',
222+
expires: new Date(Date.now() + parseInt(options.cookieLifeTime, 10) * 1000)
223+
});
224+
storage = $.initNamespaceStorage('mage-cache-storage').localStorage;
225+
storageInvalidation = $.initNamespaceStorage('mage-cache-storage-section-invalidation').localStorage;
226+
},
238227

239228
/**
240229
* Retrieve the list of sections that has expired since last page reload.
@@ -399,10 +388,7 @@ define([
399388
*/
400389
'Magento_Customer/js/customer-data': function (settings) {
401390
options = settings;
402-
403-
// re-init storage with a new settings
404391
customerData.initStorage();
405-
406392
invalidateCacheBySessionTimeOut(settings);
407393
invalidateCacheByCloseCookieSession();
408394
customerData.init();

0 commit comments

Comments
 (0)