| 1 | <?php |
||
| 6 | class AuthorityManagePage extends AbstractAdminPageStyleGuide |
||
| 7 | { |
||
| 8 | public static $完了メッセージ = '.c-contentsArea .alert-success'; |
||
| 9 | |||
| 10 | public function __construct(\AcceptanceTester $I) |
||
| 11 | { |
||
| 12 | parent::__construct($I); |
||
| 13 | } |
||
| 14 | |||
| 15 | public static function go(\AcceptanceTester $I) |
||
| 16 | { |
||
| 17 | $page = new self($I); |
||
| 18 | return $page->goPage('/setting/system/authority', '権限管理システム設定'); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function 行追加() |
||
| 22 | { |
||
| 23 | $this->tester->click('form .add'); |
||
| 24 | return $this; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function 行削除($rowNum) |
||
| 28 | { |
||
| 29 | $this->tester->click(['css' => "form #table-authority tbody tr:nth-child($rowNum) td:nth-child(3) button"]); |
||
| 30 | return $this; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function 入力($rowNum, $role, $url) { |
||
| 34 | $this->tester->selectOption(['css' => "form #table-authority tbody tr:nth-child(${rowNum}) td:nth-child(1) select"], $role); |
||
| 35 | $this->tester->fillField(['css' => "form #table-authority tbody tr:nth-child(${rowNum}) td:nth-child(2) input"], $url); |
||
| 36 | return $this; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function 登録() |
||
| 40 | { |
||
| 41 | $this->tester->click('form .c-conversionArea button'); |
||
| 42 | return $this; |
||
| 43 | } |
||
| 44 | } |