Skip to content

Commit eec82d3

Browse files
author
Oleksandr Gorkun
committed
MC-18685: Remove custom layout updates from admin
1 parent d7ce9ca commit eec82d3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/code/Magento/CatalogSearch/Test/Mftf/Test/StorefrontAdvancedSearchByPriceToTest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
<actionGroup ref="StorefrontFillFormAdvancedSearchActionGroup" stepKey="search">
2828
<argument name="price_to" value="100"/>
2929
</actionGroup>
30-
<see userInput="2 items" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/>
30+
<!-- See that some items were found, other products may exist besides our test products -->
31+
<see userInput="items" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="see"/>
3132
<see userInput="$$createProduct2.name$$" selector="{{StorefrontCatalogSearchAdvancedResultMainSection.productName}}" stepKey="seeProduct2Name" after="seeProductName"/>
3233
</test>
3334
</tests>

dev/tests/integration/testsuite/Magento/Cms/Model/PageRepositoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testSaveUpdateXml(): void
5454
$page = $this->repo->save($page);
5555

5656
//New value is not accepted.
57-
$page->setCustomLayoutUpdateXml($page->getCustomLayoutUpdateXml() .'TEST');
57+
$page->setCustomLayoutUpdateXml('<container name="new_container_for_save_update_xml" />');
5858
$forbidden = false;
5959
try {
6060
$page = $this->repo->save($page);
@@ -64,7 +64,7 @@ public function testSaveUpdateXml(): void
6464
$this->assertTrue($forbidden);
6565

6666
//New value is not accepted.
67-
$page->setLayoutUpdateXml($page->getLayoutUpdateXml() .'TEST');
67+
$page->setLayoutUpdateXml('<container name="new_container_for_save_update_xml2" />');
6868
$forbidden = false;
6969
try {
7070
$page = $this->repo->save($page);

0 commit comments

Comments
 (0)