We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e3ed7b commit 6d7612cCopy full SHA for 6d7612c
dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/Grid.php
@@ -100,11 +100,11 @@ public function getPurchasePointStoreGroups()
100
{
101
$this->openFilterBlock();
102
$storeGroupElements = $this->_rootElement->find($this->purchasePointFilter)
103
- ->getElements('.//optgroup[./option]', Locator::SELECTOR_XPATH);
+ ->getElements('//option/preceding-sibling::optgroup[1]', Locator::SELECTOR_XPATH);
104
$result = [];
105
106
foreach ($storeGroupElements as $storeGroupElement) {
107
- $result[] = trim($storeGroupElement->getAttribute('label'), ' ');
+ $result[] = trim($storeGroupElement->getAttribute('label'));
108
}
109
110
return $result;
0 commit comments