Skip to content

Commit 12c2a1d

Browse files
committed
Fix functional tests.
1 parent f59817b commit 12c2a1d

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)