Skip to content

Commit 8b06658

Browse files
committed
MAGETWO-65468: [FT] Magento\Catalog\Test\TestCase\Product\CreateSimpleProductEntityTest fails on Jenkins
1 parent 403960e commit 8b06658

File tree

1 file changed

+14
-0
lines changed
  • dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Section/ProductDetails

1 file changed

+14
-0
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Section/ProductDetails/CategoryIds.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ class CategoryIds extends MultisuggestElement
4646
*/
4747
protected $advancedInventoryButton = '[data-index="advanced_inventory_button"]';
4848

49+
/**
50+
* Locator for MultiSelect element.
51+
*
52+
* @var string
53+
*/
54+
protected $multiSelectElement = '.admin__action-multiselect-menu-inner-item';
55+
4956
/**
5057
* @constructor
5158
* @param BrowserInterface $browser
@@ -87,8 +94,15 @@ public function setValue($values)
8794
continue;
8895
}
8996
$this->keys([$value]);
97+
98+
// wait when some element of multiSelect will be visible.
99+
$this->waitUntil(function () {
100+
return $this->find($this->multiSelectElement)->isVisible() ? true : null;
101+
});
102+
90103
$searchedItem = $this->find(sprintf($this->resultItem, $value), Locator::SELECTOR_XPATH);
91104
$searchedItem->click();
105+
92106
$closeButton = $this->find($this->closeButton);
93107
if ($closeButton->isVisible()) {
94108
$closeButton->click();

0 commit comments

Comments
 (0)