| Total Complexity | 5 |
| Total Lines | 69 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class SwitchesCest |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var IndexPage |
||
| 15 | */ |
||
| 16 | private $index; |
||
| 17 | |||
| 18 | public function _before(Admin $I) |
||
| 21 | } |
||
| 22 | |||
| 23 | public function ensureIndexPageWorks(Admin $I) |
||
| 32 | } |
||
| 33 | |||
| 34 | private function ensureICanSeeAdvancedSearchBox() |
||
| 35 | { |
||
| 36 | $this->index->containsFilters([ |
||
| 37 | new Input('Switch'), |
||
| 38 | new Input('INN'), |
||
| 39 | new Input('IP'), |
||
| 40 | new Input('MAC address'), |
||
| 41 | new Input('Model'), |
||
| 42 | new Input('Order No.'), |
||
| 43 | (new Dropdown('hubsearch-type_id'))->withItems([ |
||
| 44 | 'Switch', |
||
| 45 | 'KVM', |
||
| 46 | 'APC', |
||
| 47 | 'Rack', |
||
| 48 | 'IPMI', |
||
| 49 | 'Module', |
||
| 50 | ]), |
||
| 51 | ]); |
||
| 52 | } |
||
| 53 | |||
| 54 | private function ensureICanSeeLegendBox() |
||
| 55 | { |
||
| 56 | $this->index->containsLegend([ |
||
| 57 | 'Switch', |
||
| 58 | 'KVM', |
||
| 59 | 'APC', |
||
| 60 | 'IPMI', |
||
| 61 | 'Module', |
||
| 62 | 'Rack', |
||
| 63 | 'Camera', |
||
| 64 | 'Cable organizer', |
||
| 65 | ]); |
||
| 66 | } |
||
| 67 | |||
| 68 | private function ensureICanSeeBulkServerSearchBox() |
||
| 80 | ]); |
||
| 81 | } |
||
| 82 | } |
||
| 83 |