Skip to content

Commit 0a720d4

Browse files
author
Vitaliy Honcharenko
committed
MTA-2340: Catalog module functional tests maintenance. Category & Product
- change code style
1 parent 7848fdd commit 0a720d4

File tree

1 file changed

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

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@ class AttributeSelector extends SuggestElement
2121
*/
2222
public function waitResult()
2323
{
24-
$browser = $this;
25-
$selector = $this->searchResult;
26-
$browser->waitUntil(
27-
function () use ($browser, $selector) {
28-
$element = $browser->find($selector);
29-
return $element->isVisible() ? true : null;
24+
$this->waitUntil(
25+
function () {
26+
return $this->find($this->searchResult)->isVisible() ? true : null;
3027
}
3128
);
3229
}

0 commit comments

Comments
 (0)