Skip to content

Commit fc3abc8

Browse files
committed
MAGETWO-65468: [FT] Magento\Catalog\Test\TestCase\Product\CreateSimpleProductEntityTest fails on Jenkins
1 parent f5c8add commit fc3abc8

File tree

1 file changed

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

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,15 @@ public function setValue($values)
9393
if ($value == '') {
9494
continue;
9595
}
96-
$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-
});
10296

97+
$this->keys([$value]);
10398
$searchedItem = $this->find(sprintf($this->resultItem, $value), Locator::SELECTOR_XPATH);
99+
$searchedCountElements = $this->find($this->searchedCount);
100+
$this->waitUntil(
101+
function () use ($searchedCountElements) {
102+
return $searchedCountElements->isVisible() ? true : null;
103+
}
104+
);
104105
$searchedItem->click();
105106

106107
$closeButton = $this->find($this->closeButton);

0 commit comments

Comments
 (0)