Skip to content

Commit fc08506

Browse files
author
Dmytro Aponasenko
committed
Merge branch 'MTA-2210' of https://github.corp.ebay.com/magento-qmt/magento2ce into develop
2 parents 1b21d93 + 9faa50a commit fc08506

File tree

17 files changed

+318
-270
lines changed

17 files changed

+318
-270
lines changed

dev/tests/functional/lib/Magento/Mtf/Client/Element/MultiselectlistElement.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ class MultiselectlistElement extends MultiselectElement
2727
*/
2828
protected $optionCheckedElement = './/*[contains(@class, "mselect-checked")]/following-sibling::span';
2929

30+
/**
31+
* Option locator by value.
32+
*
33+
* @var string
34+
*/
35+
protected $optionByValue = './/*[contains(@class,"mselect-list-item")]/label[contains(normalize-space(.), %s)]';
36+
3037
/**
3138
* Select options by values in multiple select list
3239
*
@@ -107,4 +114,16 @@ public function getAllValues()
107114

108115
return $optionsValue;
109116
}
117+
118+
/**
119+
* Check whether value is visible in the list.
120+
*
121+
* @param string $value
122+
* @return bool
123+
*/
124+
public function isValueVisible($value)
125+
{
126+
$option = $this->find(sprintf($this->optionByValue, $this->escapeQuotes($value)), Locator::SELECTOR_XPATH);
127+
return $option->isVisible();
128+
}
110129
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Menu extends Block
2626
*
2727
* @var string
2828
*/
29-
protected $subMenu = './/li[@role="menu-item" and a[span="%s"]]/div[@class="submenu"]';
29+
protected $subMenu = './/li[@role="menu-item" and a[span="%s"]]/div[contains(@class, "submenu")]';
3030

3131
/**
3232
* Submenu item selector.

dev/tests/functional/tests/app/Magento/Backend/Test/TestCase/NavigateMenuTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class NavigateMenuTest extends Injectable
2121
{
2222
/* tags */
2323
const MVP = 'no';
24-
const DOMAIN = 'CS, MX, PS';
24+
const DOMAIN = 'PS';
2525
/* end tags */
2626

2727
/**

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
class AssertAttributeOptionsOnProductForm extends AbstractConstraint
1515
{
1616
/**
17+
* Assert all product attribute options on product creation form.
18+
*
1719
* @return void
1820
*/
1921
public function processAssert()

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
class AssertAttributeSearchableByLabel extends AbstractConstraint
1515
{
1616
/**
17+
* Assert that product attribute is searchable on Frontend.
18+
*
1719
* @return void
1820
*/
1921
public function processAssert()

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
class AssertProductAttributeIsUsedPromoRules extends AbstractConstraint
1515
{
1616
/**
17+
* Assert that product attribute can be used on promo rules conditions.
18+
*
1719
* @return void
1820
*/
1921
public function processAssert()

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/NavigateUpSellProductsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Steps:
1919
* 1. Navigate through up-sell products.
2020
*
21-
* @ZephirId MAGETWO-12391
21+
* @ZephyrId MAGETWO-12391
2222
* @group Up-sells_(MX)
2323
*/
2424
class NavigateUpSellProductsTest extends AbstractProductPromotedProductsTest

dev/tests/functional/tests/app/Magento/CatalogRule/Test/TestCase/CreateCatalogRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* 8. Clear cache.
2424
* 9. Perform all assertions.
2525
*
26-
* @ticketId MAGETWO-23036
26+
* @ZephyrId MAGETWO-23036
2727
*/
2828
class CreateCatalogRuleTest extends AbstractCatalogRuleEntityTest
2929
{

dev/tests/functional/tests/app/Magento/Cms/Test/Fixture/CmsBlock.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/fixture.xsd">
99
<fixture name="cmsBlock" module="Magento_Cms" type="flat" entity_type="cms_block" collection="Magento\Cms\Model\Resource\Block\Grid\Collection" identifier="identifier"
10-
handler_interface="Magento\Cms\Test\Handler\CmsBlock\CmsBlockInterface" class="Magento\Cms\Test\Fixture\CmsBlock">
10+
handler_interface="Magento\Cms\Test\Handler\CmsBlock\CmsBlockInterface" repository_class="Magento\Cms\Test\Repository\CmsBlock" class="Magento\Cms\Test\Fixture\CmsBlock">
1111
<dataset name="default">
1212
<field name="title" xsi:type="string">block_%isolation%</field>
1313
<field name="identifier" xsi:type="string">identifier_%isolation%</field>

dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/CreateCustomerBackendEntityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* 5. Click "Save Customer" button.
2222
* 6. Perform all assertions.
2323
*
24-
* @ticketId MAGETWO-23424
24+
* @ZephyrId MAGETWO-23424
2525
*/
2626
class CreateCustomerBackendEntityTest extends Injectable
2727
{

0 commit comments

Comments
 (0)