Skip to content

Commit 98a44d6

Browse files
author
Vitaliy Honcharenko
committed
MTA-2340: Catalog module functional tests maintenance. Category & Product
- fixed random fail on bamboo
1 parent accc95f commit 98a44d6

File tree

1 file changed

+10
-5
lines changed
  • dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Block/Adminhtml/Product/Edit/Tab/Super/Config/Attribute

1 file changed

+10
-5
lines changed

dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Block/Adminhtml/Product/Edit/Tab/Super/Config/Attribute/AttributeSelector.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,16 @@ class AttributeSelector extends SuggestElement
2121
*/
2222
public function waitResult()
2323
{
24-
$this->waitUntil(
25-
function () {
26-
return $this->find($this->searchResult)->isVisible() ? true : null;
27-
}
28-
);
24+
try {
25+
$this->waitUntil(
26+
function () {
27+
return $this->find($this->searchResult)->isVisible() ? true : null;
28+
}
29+
);
30+
} catch (\Exception $e) {
31+
// In parallel run on windows change the focus is lost on element
32+
// that causes disappearing of result suggest list.
33+
}
2934
}
3035

3136
/**

0 commit comments

Comments
 (0)