@@ 10-60 (lines=51) @@ | ||
7 | use hipanel\tests\_support\Page\Widget\Input\Select2; |
|
8 | use hipanel\tests\_support\Step\Acceptance\Admin; |
|
9 | ||
10 | class BackupsCest |
|
11 | { |
|
12 | /** |
|
13 | * @var IndexPage |
|
14 | */ |
|
15 | private $index; |
|
16 | ||
17 | public function _before(Admin $I) |
|
18 | { |
|
19 | $this->index = new IndexPage($I); |
|
20 | } |
|
21 | ||
22 | public function ensureIndexPageWorks(Admin $I) |
|
23 | { |
|
24 | $I->login(); |
|
25 | $I->needPage(Url::to('@backuping')); |
|
26 | $I->see('Backups', 'h1'); |
|
27 | $this->ensureICanSeeAdvancedSearchBox(); |
|
28 | $this->ensureICanSeeBulkSearchBox(); |
|
29 | } |
|
30 | ||
31 | private function ensureICanSeeAdvancedSearchBox() |
|
32 | { |
|
33 | $this->index->containsFilters([ |
|
34 | new Select2('State'), |
|
35 | new Select2('Account'), |
|
36 | new Select2('Server'), |
|
37 | new Select2('Client'), |
|
38 | ]); |
|
39 | } |
|
40 | ||
41 | private function ensureICanSeeBulkSearchBox() |
|
42 | { |
|
43 | $this->index->containsBulkButtons([ |
|
44 | 'Enable', |
|
45 | 'Disable', |
|
46 | 'Delete', |
|
47 | ]); |
|
48 | $this->index->containsColumns([ |
|
49 | 'Name', |
|
50 | 'Client', |
|
51 | 'Account', |
|
52 | 'Server', |
|
53 | 'Count', |
|
54 | 'Periodicity', |
|
55 | 'State', |
|
56 | 'Last backup', |
|
57 | 'Disk usage', |
|
58 | ]); |
|
59 | } |
|
60 | } |
|
61 |
@@ 10-60 (lines=51) @@ | ||
7 | use hipanel\tests\_support\Page\Widget\Input\Select2; |
|
8 | use hipanel\tests\_support\Step\Acceptance\Seller; |
|
9 | ||
10 | class BackupsCest |
|
11 | { |
|
12 | /** |
|
13 | * @var IndexPage |
|
14 | */ |
|
15 | private $index; |
|
16 | ||
17 | public function _before(Seller $I) |
|
18 | { |
|
19 | $this->index = new IndexPage($I); |
|
20 | } |
|
21 | ||
22 | public function ensureIndexPageWorks(Seller $I) |
|
23 | { |
|
24 | $I->login(); |
|
25 | $I->needPage(Url::to('@backuping')); |
|
26 | $I->see('Backups', 'h1'); |
|
27 | $this->ensureICanSeeAdvancedSearchBox(); |
|
28 | $this->ensureICanSeeBulkSearchBox(); |
|
29 | } |
|
30 | ||
31 | private function ensureICanSeeAdvancedSearchBox() |
|
32 | { |
|
33 | $this->index->containsFilters([ |
|
34 | new Select2('State'), |
|
35 | new Select2('Account'), |
|
36 | new Select2('Server'), |
|
37 | new Select2('Client'), |
|
38 | ]); |
|
39 | } |
|
40 | ||
41 | private function ensureICanSeeBulkSearchBox() |
|
42 | { |
|
43 | $this->index->containsBulkButtons([ |
|
44 | 'Enable', |
|
45 | 'Disable', |
|
46 | 'Delete', |
|
47 | ]); |
|
48 | $this->index->containsColumns([ |
|
49 | 'Name', |
|
50 | 'Client', |
|
51 | 'Account', |
|
52 | 'Server', |
|
53 | 'Count', |
|
54 | 'Periodicity', |
|
55 | 'State', |
|
56 | 'Last backup', |
|
57 | 'Disk usage', |
|
58 | ]); |
|
59 | } |
|
60 | } |
|
61 |