Skip to content

Commit

Permalink
fixed input detection in tests/acceptance/admin/SwitchesCest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
strorch authored and hiqsol committed Mar 15, 2019
1 parent dd2eec2 commit 48bc600
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/models/HubSearch.php
Expand Up @@ -36,7 +36,8 @@ public function searchAttributes()
public function attributeLabels()
{
return array_merge(parent::attributeLabels(), [
'name_inilike' => Yii::t('hipanel:server', 'Name'),
'name_inilike' => Yii::t('hipanel:server', 'Switch'),
'rack_ilike' => Yii::t('hipanel:server', 'Rack'),
]);
}
}
4 changes: 4 additions & 0 deletions tests/acceptance/admin/SwitchesCest.php
Expand Up @@ -6,6 +6,7 @@
use hipanel\tests\_support\Page\IndexPage;
use hipanel\tests\_support\Page\Widget\Input\Dropdown;
use hipanel\tests\_support\Page\Widget\Input\Input;
use hipanel\tests\_support\Page\Widget\Input\Select2;
use hipanel\tests\_support\Step\Acceptance\Admin;

class SwitchesCest
Expand Down Expand Up @@ -48,6 +49,9 @@ private function ensureICanSeeAdvancedSearchBox(Admin $I)
'IPMI',
'Module',
]),
Select2::asAdvancedSearch($I, 'Buyer'),
Input::asAdvancedSearch($I, 'Tariff'),
Input::asAdvancedSearch($I, 'Rack'),
]);
}

Expand Down

0 comments on commit 48bc600

Please sign in to comment.