Skip to content

Commit deb524c

Browse files
MTO-91: [Test] Url rewrites in catalog categories after changing url key for store view and moving category
- CR comments fixed
1 parent d7b6012 commit deb524c

File tree

8 files changed

+13
-10
lines changed

8 files changed

+13
-10
lines changed

dev/tests/functional/tests/app/Magento/Backend/Test/Block/Messages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Messages extends Block
4040
*
4141
* @var string
4242
*/
43-
protected $errorMessage = '[data-ui-id$=message-error], .message-error, #order-errors span.title';
43+
protected $errorMessage = '[data-ui-id$=message-error], .message-error';
4444

4545
/**
4646
* Notice message selector.

dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInCustomStoreView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Magento\Mtf\Fixture\FixtureInterface;
1515

1616
/**
17-
* Assert that product name is correct in Custom adn Default store views.
17+
* Assert that product name is correct in Custom and Default store views.
1818
*/
1919
class AssertProductInCustomStoreView extends AbstractAssertForm
2020
{

dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInventoryMaxAllowedQty.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function processAssert(
5050
\PHPUnit_Framework_Assert::assertEquals(
5151
$catalogProductView->getMessagesBlock()->getErrorMessage(),
5252
sprintf($this->errorMessage, $maxQty),
53-
'Limiting max qty is not working correctly.'
53+
'The maximum purchase warning message is not appears.'
5454
);
5555

5656
$catalogProductView->getViewBlock()->setQtyAndClickAddToCart($maxQty);

dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInventoryMinAllowedQty.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function processAssert(
5050
\PHPUnit_Framework_Assert::assertEquals(
5151
$catalogProductView->getMessagesBlock()->getErrorMessage(),
5252
sprintf($this->errorMessage, $minQty),
53-
'Limiting min qty is not working correctly.'
53+
'The minimum purchase warning message is not appears.'
5454
);
5555

5656
$catalogProductView->getViewBlock()->setQtyAndClickAddToCart($minQty);

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Category/CreateCategoryEntityTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
<constraint name="Magento\Catalog\Test\Constraint\AssertCategoryForAssignedProducts" />
156156
</variation>
157157
<variation name="CreateCategoryEntityTestVariation9_FiveNesting" summary="Create category with five nesting" ticketId="MAGETWO-48379">
158+
<data name="tag" xsi:type="string">test_type:extended_acceptance_test</data>
158159
<data name="addCategory" xsi:type="string">addSubcategory</data>
159160
<data name="category/data/parent_id/dataset" xsi:type="string">five_nested_categories</data>
160161
<data name="category/data/is_active" xsi:type="string">Yes</data>

dev/tests/functional/tests/app/Magento/Checkout/Test/TestCase/AddProductsToShoppingCartEntityTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/variations.xsd">
99
<testCase name="Magento\Checkout\Test\TestCase\AddProductsToShoppingCartEntityTest" summary="Add Products to Shopping Cart" ticketId="MAGETWO-25382">
1010
<variation name="AddProductsToShoppingCartEntityTestVariation1" ticketId="MAGETWO-42677">
11+
<data name="tag" xsi:type="string">severity:S2</data>
1112
<data name="productsData/0" xsi:type="string">bundleProduct::bundle_dynamic_product</data>
1213
<data name="cart/data/grand_total" xsi:type="string">210</data>
1314
<data name="cart/data/subtotal" xsi:type="string">200</data>

dev/tests/functional/tests/app/Magento/Checkout/Test/TestCase/OnePageCheckoutTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/variations.xsd">
99
<testCase name="Magento\Checkout\Test\TestCase\OnePageCheckoutTest" summary="OnePageCheckout within Offline Payment Methods" ticketId="MAGETWO-27485">
1010
<variation name="OnePageCheckoutUsingLoginPopup" summary="Customer is redirected to checkout on login if guest is disabled, flow for existed Customer" ticketId="MAGETWO-49916">
11+
<data name="tag" xsi:type="string">severity:S1</data>
1112
<data name="products/0" xsi:type="string">catalogProductSimple::default</data>
1213
<data name="customer/dataset" xsi:type="string">johndoe_with_addresses</data>
1314
<data name="checkoutMethod" xsi:type="string">login</data>

dev/tests/functional/tests/app/Magento/Reports/Test/Page/Adminhtml/SalesShippingReport.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../vendor/magento/mtf/etc/pages.xsd">
9-
<page name="SalesShippingReport" area="Adminhtml" mca="reports/report_sales/shipping" module="Magento_Reports">
10-
<block name="messagesBlock" class="Magento\Backend\Test\Block\Messages" locator="#messages .messages" strategy="css selector"/>
11-
<block name="filterForm" class="Magento\Sales\Test\Block\Adminhtml\Report\Filter\Form" locator="#filter_form" strategy="css selector"/>
12-
<block name="actionBlock" class="Magento\Reports\Test\Block\Adminhtml\Viewed\Action" locator=".page-main-actions" strategy="css selector"/>
13-
<block name="gridBlock" class="Magento\Reports\Test\Block\Adminhtml\Sales\Shipping\Grid" locator=".data-grid" strategy="css selector"/>
14-
</page>
9+
<page name="SalesShippingReport" area="Adminhtml" mca="reports/report_sales/shipping" module="Magento_Reports">
10+
<block name="messagesBlock" class="Magento\Backend\Test\Block\Messages" locator="#messages .messages" strategy="css selector"/>
11+
<block name="filterForm" class="Magento\Sales\Test\Block\Adminhtml\Report\Filter\Form" locator="#filter_form" strategy="css selector"/>
12+
<block name="actionBlock" class="Magento\Reports\Test\Block\Adminhtml\Viewed\Action" locator=".page-main-actions" strategy="css selector"/>
13+
<block name="gridBlock" class="Magento\Reports\Test\Block\Adminhtml\Sales\Shipping\Grid" locator=".data-grid" strategy="css selector"/>
14+
</page>
1515
</config>

0 commit comments

Comments
 (0)