Skip to content

Commit 29f5e93

Browse files
ENGCOM-4242: [ForwardPort] #18896 Add Mexico Regions #21180
- Merge Pull Request #21180 from osrecio/magento2:FP_18896_AddMexicoStates - Merged commits: 1. d09b512 2. 6d52365 3. c0f2632 4. 0605d38 5. f59817b 6. 12c2a1d
2 parents 8f26b57 + 12c2a1d commit 29f5e93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dev/tests/functional/lib/Magento/Mtf/Client/Element/ConditionsElement.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,9 @@ protected function fillGrid($rule, ElementInterface $param)
397397
protected function fillSelect($rule, ElementInterface $param, $type = null)
398398
{
399399
//Avoid confusion between regions like: "Baja California" and "California".
400-
$value = $type === 'Shipping State/Province'
401-
? $param->find('select', Locator::SELECTOR_TAG_NAME, 'selectstate')
402-
: $param->find('select', Locator::SELECTOR_TAG_NAME, 'select');
400+
$value = strpos($type, 'State/Province') === false
401+
? $param->find('select', Locator::SELECTOR_TAG_NAME, 'select')
402+
: $param->find('select', Locator::SELECTOR_TAG_NAME, 'selectstate');
403403
if ($value->isVisible()) {
404404
$value->setValue($rule);
405405
$this->click();

0 commit comments

Comments
 (0)