Skip to content

Commit 1c553ec

Browse files
authored
Merge pull request #8000 from magento-gl/feature-ukraine-regions
[Bluetooth] Community Pull Requests delivery - 2.4-develop
2 parents d505803 + 1b6f6eb commit 1c553ec

File tree

35 files changed

+408
-55
lines changed

35 files changed

+408
-55
lines changed

app/code/Magento/Captcha/Test/Mftf/Section/StorefrontCustomerSignInFormSection.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="StorefrontCustomerSignInFormSection">
12-
<element name="captchaField" type="input" selector="#captcha_user_login"/>
13-
<element name="captchaImg" type="block" selector=".captcha-img"/>
14-
<element name="captchaReload" type="block" selector=".captcha-reload"/>
12+
<element name="captchaField" type="input" selector="fieldset #captcha_user_login"/>
13+
<element name="captchaImg" type="block" selector="fieldset .captcha-img"/>
14+
<element name="captchaReload" type="block" selector="fieldset .captcha-reload"/>
1515
</section>
1616
</sections>

app/code/Magento/Catalog/Model/ResourceModel/Category/Collection.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class Collection extends \Magento\Catalog\Model\ResourceModel\Collection\AbstractCollection
2424
{
2525
/**
26-
* Event prefix
26+
* Event prefix name
2727
*
2828
* @var string
2929
*/
@@ -155,7 +155,7 @@ public function addIdFilter($categoryIds)
155155
$condition = $categoryIds;
156156
} elseif (is_string($categoryIds)) {
157157
$ids = explode(',', $categoryIds);
158-
if (empty($ids)) {
158+
if (count($ids) == 0) {
159159
$condition = $categoryIds;
160160
} else {
161161
$condition = ['in' => $ids];
@@ -327,7 +327,7 @@ public function loadProductCount($items, $countRegular = true, $countAnchor = tr
327327
$countSelect = $this->getProductsCountQuery($categoryIds, (bool)$websiteId);
328328
$categoryProductsCount = $this->_conn->fetchPairs($countSelect);
329329
foreach ($anchor as $item) {
330-
$productsCount = isset($categoriesProductsCount[$item->getId()])
330+
$productsCount = isset($categoryProductsCount[$item->getId()])
331331
? (int)$categoryProductsCount[$item->getId()]
332332
: $this->getProductsCountFromCategoryTable($item, $websiteId);
333333
$item->setProductCount($productsCount);
@@ -556,7 +556,8 @@ private function getProductsCountFromCategoryTable(Category $item, string $websi
556556
*/
557557
private function getProductsCountQuery(array $categoryIds, $addVisibilityFilter = true): Select
558558
{
559-
$categoryTable = $this->getTable('catalog_category_product_index');
559+
$connections = $this->_resource->getConnection();
560+
$categoryTable = $connections->getTableName('catalog_category_product_index');
560561
$select = $this->_conn->select()
561562
->from(
562563
['cat_index' => $categoryTable],

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<argument name="address" defaultValue="US_Address_TX" type="entity"/>
1818
</arguments>
1919

20-
<grabValueFrom selector="{{CheckoutShippingSection.email}}" stepKey="email"/>
20+
<grabValueFrom selector="{{CheckoutShippingSection.emailAddress}}" stepKey="email"/>
2121
<grabValueFrom selector="{{CheckoutShippingSection.firstName}}" stepKey="firstname"/>
2222
<grabValueFrom selector="{{CheckoutShippingSection.lastName}}" stepKey="lastname"/>
2323
<grabValueFrom selector="{{CheckoutShippingSection.street}}" stepKey="street"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<argument name="customerAddressVar"/>
1919
</arguments>
2020

21-
<fillField selector="{{CheckoutShippingSection.email}}" userInput="{{customerVar.email}}" stepKey="enterEmail"/>
21+
<fillField selector="{{CheckoutShippingSection.emailAddress}}" userInput="{{customerVar.email}}" stepKey="enterEmail"/>
2222
<waitForPageLoad stepKey="waitForLoading3"/>
2323
<fillField selector="{{CheckoutPaymentSection.guestFirstName}}" userInput="{{customerVar.firstname}}" stepKey="enterFirstName"/>
2424
<fillField selector="{{CheckoutPaymentSection.guestLastName}}" userInput="{{customerVar.lastname}}" stepKey="enterLastName"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<argument name="address" type="entity"/>
1818
</arguments>
1919

20-
<fillField selector="{{CheckoutShippingSection.email}}" userInput="{{customer.email}}" stepKey="fillEmailField"/>
20+
<fillField selector="{{CheckoutShippingSection.emailAddress}}" userInput="{{customer.email}}" stepKey="fillEmailField"/>
2121
<fillField selector="{{CheckoutShippingSection.firstName}}" userInput="{{customer.firstName}}" stepKey="fillFirstName"/>
2222
<fillField selector="{{CheckoutShippingSection.lastName}}" userInput="{{customer.lastName}}" stepKey="fillLastName"/>
2323
<fillField selector="{{CheckoutShippingSection.street}}" userInput="{{address.street}}" stepKey="fillStreet"/>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
<argument name="shippingMethod" defaultValue="" type="string"/>
2020
</arguments>
2121

22-
<waitForElementVisible selector="{{CheckoutShippingSection.email}}" stepKey="waitForEmailField"/>
23-
<fillField selector="{{CheckoutShippingSection.email}}" userInput="{{customerVar.email}}" stepKey="enterEmail"/>
22+
<waitForElementVisible selector="{{CheckoutShippingSection.emailAddress}}" stepKey="waitForEmailField"/>
23+
<fillField selector="{{CheckoutShippingSection.emailAddress}}" userInput="{{customerVar.email}}" stepKey="enterEmail"/>
2424
<fillField selector="{{CheckoutShippingSection.firstName}}" userInput="{{customerVar.firstname}}" stepKey="enterFirstName"/>
2525
<fillField selector="{{CheckoutShippingSection.lastName}}" userInput="{{customerVar.lastname}}" stepKey="enterLastName"/>
2626
<fillField selector="{{CheckoutShippingSection.street}}" userInput="{{customerAddressVar.street[0]}}" stepKey="enterStreet"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<argument name="customerAddressVar"/>
1818
</arguments>
1919

20-
<fillField selector="{{CheckoutShippingSection.email}}" userInput="{{customerVar.email}}" stepKey="enterEmail"/>
20+
<fillField selector="{{CheckoutShippingSection.emailAddress}}" userInput="{{customerVar.email}}" stepKey="enterEmail"/>
2121
<fillField selector="{{CheckoutShippingSection.firstName}}" userInput="{{customerVar.firstname}}" stepKey="enterFirstName"/>
2222
<fillField selector="{{CheckoutShippingSection.lastName}}" userInput="{{customerVar.lastname}}" stepKey="enterLastName"/>
2323
<fillField selector="{{CheckoutShippingSection.street}}" userInput="{{customerAddressVar.street[0]}}" stepKey="enterStreet"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<argument name="customerAddressVar"/>
1818
</arguments>
1919

20-
<fillField selector="{{CheckoutShippingSection.email}}" userInput="{{customerVar.email}}" stepKey="enterEmail"/>
20+
<fillField selector="{{CheckoutShippingSection.emailAddress}}" userInput="{{customerVar.email}}" stepKey="enterEmail"/>
2121
<fillField selector="{{CheckoutShippingSection.firstName}}" userInput="{{customerVar.firstname}}" stepKey="enterFirstName"/>
2222
<fillField selector="{{CheckoutShippingSection.lastName}}" userInput="{{customerVar.lastname}}" stepKey="enterLastName"/>
2323
<fillField selector="{{CheckoutShippingSection.street}}" userInput="{{customerAddressVar.street[0]}}" stepKey="enterStreet"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</arguments>
1818

1919
<waitForPageLoad stepKey="waitForCheckoutShippingSectionToLoad"/>
20-
<fillField selector="{{CheckoutShippingSection.email}}" userInput="{{customer.email}}" stepKey="fillEmailField"/>
20+
<fillField selector="{{CheckoutShippingSection.emailAddress}}" userInput="{{customer.email}}" stepKey="fillEmailField"/>
2121
<waitForPageLoad stepKey="waitForLoadingMaskToDisappear"/>
2222
<waitForElementVisible selector="{{CheckoutShippingSection.password}}" stepKey="waitForElementVisible"/>
2323
<fillField selector="{{CheckoutShippingSection.password}}" userInput="{{customer.password}}" stepKey="fillPasswordField"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<description>Fills in the Customer details for the 'Shipping Address' section of the Storefront Checkout page. Selects 'Free Shipping'. Clicks on Next. Validates that the URL is present and correct.</description>
1515
</annotations>
1616

17-
<fillField selector="{{CheckoutShippingSection.email}}" userInput="{{CustomerEntityOne.email}}" stepKey="setCustomerEmail"/>
17+
<fillField selector="{{CheckoutShippingSection.emailAddress}}" userInput="{{CustomerEntityOne.email}}" stepKey="setCustomerEmail"/>
1818
<fillField selector="{{CheckoutShippingSection.firstName}}" userInput="{{CustomerEntityOne.firstname}}" stepKey="SetCustomerFirstName"/>
1919
<fillField selector="{{CheckoutShippingSection.lastName}}" userInput="{{CustomerEntityOne.lastname}}" stepKey="SetCustomerLastName"/>
2020
<fillField selector="{{CheckoutShippingSection.street}}" userInput="{{CustomerAddressSimple.street}}" stepKey="SetCustomerStreetAddress"/>

0 commit comments

Comments
 (0)