File tree Expand file tree Collapse file tree 4 files changed +13
-10
lines changed
dev/tests/functional/tests/app/Magento/Catalog/Test Expand file tree Collapse file tree 4 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 130
130
</design >
131
131
<schedule_design_update >
132
132
<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 >
135
135
<fields >
136
136
<schedule_update_from >
137
137
<input >datepicker</input >
Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ class TopToolbar extends Block
28
28
*/
29
29
public function getSelectSortType ()
30
30
{
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 ];
32
34
}
33
35
34
36
/**
@@ -38,7 +40,8 @@ public function getSelectSortType()
38
40
*/
39
41
public function getSortType ()
40
42
{
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 ];
43
46
}
44
47
}
Original file line number Diff line number Diff line change 67
67
<field name =" name" xsi : type =" string" >Category%isolation%</field >
68
68
<field name =" url_key" xsi : type =" string" >category-%isolation%</field >
69
69
<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 >
71
71
</field >
72
72
<field name =" is_active" xsi : type =" string" >Yes</field >
73
73
<field name =" include_in_menu" xsi : type =" string" >Yes</field >
Original file line number Diff line number Diff line change 39
39
<data name =" category/data/layout_update_xml" xsi : type =" string" >< referenceContainer name=" catalog.leftnav" remove=" true" /> </data >
40
40
<data name =" category/data/new_theme" xsi : type =" string" >Magento Luma</data >
41
41
<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 >
44
44
<constraint name =" Magento\Catalog\Test\Constraint\AssertCategorySaveMessage" />
45
45
<constraint name =" Magento\Catalog\Test\Constraint\AssertCategoryForm" />
46
46
</variation >
82
82
<data name =" category/data/layout_update_xml" xsi : type =" string" >< referenceContainer name=" content.aside" remove=" true" /> </data >
83
83
<data name =" category/data/new_theme" xsi : type =" string" >Magento Luma</data >
84
84
<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 >
87
87
<constraint name =" Magento\Catalog\Test\Constraint\AssertCategorySaveMessage" />
88
88
<constraint name =" Magento\Catalog\Test\Constraint\AssertCategoryForm" />
89
89
<constraint name =" Magento\Catalog\Test\Constraint\AssertCategoryPage" />
You can’t perform that action at this time.
0 commit comments