Skip to content

Commit 4c766ea

Browse files
committed
MAGETWO-65534: Unstable Tests in L4 Functional Tests EE build on mainline develop: AddToCartCrossSellTest, NavigateUpSellProductsTest, NavigateRelatedProductsTest
- Hover over row before click;
1 parent 585dbf6 commit 4c766ea

File tree

1 file changed

+2
-34
lines changed
  • dev/tests/functional/tests/app/Magento/Ui/Test/Block/Adminhtml

1 file changed

+2
-34
lines changed

dev/tests/functional/tests/app/Magento/Ui/Test/Block/Adminhtml/DataGrid.php

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -275,48 +275,16 @@ public function searchAndSelect(array $filter)
275275
{
276276
$this->search($filter);
277277
$rowItem = $this->getRow($filter);
278-
$this->waitUntilRowIsVisible($rowItem);
278+
$this->waitLoader();
279+
$this->_rootElement->find($rowItem->getLocator()['value'], $rowItem->getLocator()['using'])->hover();
279280
if ($rowItem->isVisible()) {
280-
$this->waitUntilSelectRowIsVisible($rowItem);
281281
$rowItem->find($this->selectItem)->click();
282282
} else {
283283
throw new \Exception("Searched item was not found by filter\n" . print_r($filter, true));
284284
}
285285
$this->waitLoader();
286286
}
287287

288-
/**
289-
* Wait for row is visible in the grid.
290-
*
291-
* @param ElementInterface $rowItem
292-
* @return void
293-
*/
294-
private function waitUntilRowIsVisible($rowItem)
295-
{
296-
$locator = $rowItem->getLocator()['value'];
297-
$strategy = $rowItem->getLocator()['using'];
298-
$this->_rootElement->waitUntil(
299-
function () use ($locator, $strategy) {
300-
return $this->_rootElement->find($locator, $strategy)->isVisible();
301-
}
302-
);
303-
}
304-
305-
/**
306-
* Wait for select row is visible.
307-
*
308-
* @param ElementInterface $rowItem
309-
* @return void
310-
*/
311-
private function waitUntilSelectRowIsVisible($rowItem)
312-
{
313-
$this->_rootElement->waitUntil(
314-
function () use ($rowItem) {
315-
return $rowItem->find($this->selectItem)->isVisible();
316-
}
317-
);
318-
}
319-
320288
/**
321289
* Perform selected massaction over checked items.
322290
*

0 commit comments

Comments
 (0)