Skip to content

Commit

Permalink
Fix functional tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalevanec committed Mar 14, 2019
1 parent f59817b commit 12c2a1d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,9 @@ protected function fillGrid($rule, ElementInterface $param)
protected function fillSelect($rule, ElementInterface $param, $type = null)
{
//Avoid confusion between regions like: "Baja California" and "California".
$value = $type === 'Shipping State/Province'
? $param->find('select', Locator::SELECTOR_TAG_NAME, 'selectstate')
: $param->find('select', Locator::SELECTOR_TAG_NAME, 'select');
$value = strpos($type, 'State/Province') === false
? $param->find('select', Locator::SELECTOR_TAG_NAME, 'select')
: $param->find('select', Locator::SELECTOR_TAG_NAME, 'selectstate');
if ($value->isVisible()) {
$value->setValue($rule);
$this->click();
Expand Down

0 comments on commit 12c2a1d

Please sign in to comment.