Skip to content

Commit 2856945

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-55794' into BUGS
2 parents 322b979 + 9d3cbc9 commit 2856945

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Category/Edit/CategoryForm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130
</design>
131131
<schedule_design_update>
132132
<class>\Magento\Ui\Test\Block\Adminhtml\Section</class>
133-
<selector>//div[contains(@class,'admin__collapsible-block-wrapper')][descendant::input[@name='custom_design_to']]</selector>
134-
<strategy>xpath</strategy>
133+
<selector>[data-index="schedule_design_update"]</selector>
134+
<strategy>css selector</strategy>
135135
<fields>
136136
<schedule_update_from>
137137
<input>datepicker</input>

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/ProductList/TopToolbar.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class TopToolbar extends Block
2828
*/
2929
public function getSelectSortType()
3030
{
31-
return $this->_rootElement->find("#sorter")->getElements('option[selected]')[0]->getText();
31+
$selectedOption = $this->_rootElement->find($this->sorter)->getElements('option[selected]')[0]->getText();
32+
preg_match('/\w+\s?\w+/', $selectedOption, $matches);
33+
return $matches[0];
3234
}
3335

3436
/**
@@ -38,7 +40,8 @@ public function getSelectSortType()
3840
*/
3941
public function getSortType()
4042
{
41-
$content = str_replace("\r", '', $this->_rootElement->find($this->sorter)->getText());
42-
return explode("\n", $content);
43+
$content = $this->_rootElement->find($this->sorter)->getText();
44+
preg_match_all('/\w+\s?\w+/', $content, $matches);
45+
return $matches[0];
4346
}
4447
}

dev/tests/functional/tests/app/Magento/Catalog/Test/Repository/Category.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<field name="name" xsi:type="string">Category%isolation%</field>
6868
<field name="url_key" xsi:type="string">category-%isolation%</field>
6969
<field name="parent_id" xsi:type="array">
70-
<item name="dataset" xsi:type="string">default_subcategory</item>
70+
<item name="dataset" xsi:type="string">default</item>
7171
</field>
7272
<field name="is_active" xsi:type="string">Yes</field>
7373
<field name="include_in_menu" xsi:type="string">Yes</field>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
<data name="category/data/layout_update_xml" xsi:type="string">&#60;referenceContainer name=&quot;catalog.leftnav&quot; remove=&quot;true&quot;/&#62;</data>
4040
<data name="category/data/new_theme" xsi:type="string">Magento Luma</data>
4141
<data name="category/data/apply_design_to_products" xsi:type="string">Yes</data>
42-
<data name="category/data/schedule_update_from" xsi:type="string">Jan 10, 2014</data>
43-
<data name="category/data/schedule_update_to" xsi:type="string">Dec 31, 2024</data>
42+
<data name="category/data/schedule_update_from" xsi:type="string">01/10/2014</data>
43+
<data name="category/data/schedule_update_to" xsi:type="string">12/31/2024</data>
4444
<constraint name="Magento\Catalog\Test\Constraint\AssertCategorySaveMessage" />
4545
<constraint name="Magento\Catalog\Test\Constraint\AssertCategoryForm" />
4646
</variation>
@@ -82,8 +82,8 @@
8282
<data name="category/data/layout_update_xml" xsi:type="string">&#60;referenceContainer name=&quot;content.aside&quot; remove=&quot;true&quot;/&#62;</data>
8383
<data name="category/data/new_theme" xsi:type="string">Magento Luma</data>
8484
<data name="category/data/apply_design_to_products" xsi:type="string">Yes</data>
85-
<data name="category/data/schedule_update_from" xsi:type="string">Jan 1, 2014</data>
86-
<data name="category/data/schedule_update_to" xsi:type="string">Dec 31, 2024</data>
85+
<data name="category/data/schedule_update_from" xsi:type="string">01/10/2014</data>
86+
<data name="category/data/schedule_update_to" xsi:type="string">12/31/2024</data>
8787
<constraint name="Magento\Catalog\Test\Constraint\AssertCategorySaveMessage" />
8888
<constraint name="Magento\Catalog\Test\Constraint\AssertCategoryForm" />
8989
<constraint name="Magento\Catalog\Test\Constraint\AssertCategoryPage" />

0 commit comments

Comments
 (0)