Skip to content

Commit 06a32e1

Browse files
committed
MAGETWO-89079: Different order statuses with zero value and none zero statuses
- Order States fix - Tests fix
1 parent 35e38af commit 06a32e1

File tree

1 file changed

+3
-1
lines changed
  • dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order

1 file changed

+3
-1
lines changed

dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/AbstractForm.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
namespace Magento\Sales\Test\Block\Adminhtml\Order;
88

9+
use function GuzzleHttp\Psr7\str;
910
use Magento\Mtf\Block\Form;
1011
use Magento\Mtf\Client\Locator;
1112

@@ -57,8 +58,9 @@ protected function waitForElementEnabled(string $selector, string $strategy = Lo
5758
return $browser->waitUntil(
5859
function () use ($browser, $selector, $strategy) {
5960
$element = $browser->find($selector, $strategy);
61+
$class = $element->getAttribute('class');
6062

61-
return !$element->isDisabled() ? true : null;
63+
return (!$element->isDisabled() && !strpos($class, 'disabled')) ? true : null;
6264
}
6365
);
6466
}

0 commit comments

Comments
 (0)