| @@ 11-52 (lines=42) @@ | ||
| 8 | use hipanel\tests\_support\Page\Widget\Input\Select2; |
|
| 9 | use hipanel\tests\_support\Step\Acceptance\Admin; |
|
| 10 | ||
| 11 | class ServicesCest |
|
| 12 | { |
|
| 13 | /** |
|
| 14 | * @var IndexPage |
|
| 15 | */ |
|
| 16 | private $index; |
|
| 17 | ||
| 18 | public function _before(Admin $I) |
|
| 19 | { |
|
| 20 | $this->index = new IndexPage($I); |
|
| 21 | } |
|
| 22 | ||
| 23 | public function ensureIndexPageWorks(Admin $I) |
|
| 24 | { |
|
| 25 | $I->login(); |
|
| 26 | $I->needPage(Url::to('@service')); |
|
| 27 | $I->see('Services', 'h1'); |
|
| 28 | $this->ensureICanSeeAdvancedSearchBox(); |
|
| 29 | $this->ensureICanSeeBulkSearchBox(); |
|
| 30 | } |
|
| 31 | ||
| 32 | private function ensureICanSeeAdvancedSearchBox() |
|
| 33 | { |
|
| 34 | $this->index->containsFilters([ |
|
| 35 | new Input('Name'), |
|
| 36 | new Select2('Server'), |
|
| 37 | new Select2('Soft'), |
|
| 38 | new Select2('Status'), |
|
| 39 | ]); |
|
| 40 | } |
|
| 41 | ||
| 42 | private function ensureICanSeeBulkSearchBox() |
|
| 43 | { |
|
| 44 | $this->index->containsColumns([ |
|
| 45 | 'Server', |
|
| 46 | 'Object', |
|
| 47 | 'IP', |
|
| 48 | 'Soft', |
|
| 49 | 'Status', |
|
| 50 | ]); |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||
| @@ 11-52 (lines=42) @@ | ||
| 8 | use hipanel\tests\_support\Page\Widget\Input\Select2; |
|
| 9 | use hipanel\tests\_support\Step\Acceptance\Client; |
|
| 10 | ||
| 11 | class ServicesCest |
|
| 12 | { |
|
| 13 | /** |
|
| 14 | * @var IndexPage |
|
| 15 | */ |
|
| 16 | private $index; |
|
| 17 | ||
| 18 | public function _before(Client $I) |
|
| 19 | { |
|
| 20 | $this->index = new IndexPage($I); |
|
| 21 | } |
|
| 22 | ||
| 23 | public function ensureIndexPageWorks(Client $I) |
|
| 24 | { |
|
| 25 | $I->login(); |
|
| 26 | $I->needPage(Url::to('@service')); |
|
| 27 | $I->see('Services', 'h1'); |
|
| 28 | $this->ensureICanSeeAdvancedSearchBox(); |
|
| 29 | $this->ensureICanSeeBulkSearchBox(); |
|
| 30 | } |
|
| 31 | ||
| 32 | private function ensureICanSeeAdvancedSearchBox() |
|
| 33 | { |
|
| 34 | $this->index->containsFilters([ |
|
| 35 | new Input('Name'), |
|
| 36 | new Select2('Server'), |
|
| 37 | new Select2('Soft'), |
|
| 38 | new Select2('Status'), |
|
| 39 | ]); |
|
| 40 | } |
|
| 41 | ||
| 42 | private function ensureICanSeeBulkSearchBox() |
|
| 43 | { |
|
| 44 | $this->index->containsColumns([ |
|
| 45 | 'Server', |
|
| 46 | 'Object', |
|
| 47 | 'IP', |
|
| 48 | 'Soft', |
|
| 49 | 'Status', |
|
| 50 | ]); |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||
| @@ 11-52 (lines=42) @@ | ||
| 8 | use hipanel\tests\_support\Page\Widget\Input\Select2; |
|
| 9 | use hipanel\tests\_support\Step\Acceptance\Seller; |
|
| 10 | ||
| 11 | class ServicesCest |
|
| 12 | { |
|
| 13 | /** |
|
| 14 | * @var IndexPage |
|
| 15 | */ |
|
| 16 | private $index; |
|
| 17 | ||
| 18 | public function _before(Seller $I) |
|
| 19 | { |
|
| 20 | $this->index = new IndexPage($I); |
|
| 21 | } |
|
| 22 | ||
| 23 | public function ensureIndexPageWorks(Seller $I) |
|
| 24 | { |
|
| 25 | $I->login(); |
|
| 26 | $I->needPage(Url::to('@service')); |
|
| 27 | $I->see('Services', 'h1'); |
|
| 28 | $this->ensureICanSeeAdvancedSearchBox(); |
|
| 29 | $this->ensureICanSeeBulkSearchBox(); |
|
| 30 | } |
|
| 31 | ||
| 32 | private function ensureICanSeeAdvancedSearchBox() |
|
| 33 | { |
|
| 34 | $this->index->containsFilters([ |
|
| 35 | new Input('Name'), |
|
| 36 | new Select2('Server'), |
|
| 37 | new Select2('Soft'), |
|
| 38 | new Select2('Status'), |
|
| 39 | ]); |
|
| 40 | } |
|
| 41 | ||
| 42 | private function ensureICanSeeBulkSearchBox() |
|
| 43 | { |
|
| 44 | $this->index->containsColumns([ |
|
| 45 | 'Server', |
|
| 46 | 'Object', |
|
| 47 | 'IP', |
|
| 48 | 'Soft', |
|
| 49 | 'Status', |
|
| 50 | ]); |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||