| 1 | <?php |
||
| 7 | class PaymentManagePage extends AbstractAdminPageStyleGuide |
||
| 8 | { |
||
| 9 | |||
| 10 | public static $登録完了メッセージ = '.c-container .c-contentsArea div.alert-success'; |
||
| 11 | |||
| 12 | public function __construct(\AcceptanceTester $I) |
||
| 13 | { |
||
| 14 | parent::__construct($I); |
||
| 15 | } |
||
| 16 | |||
| 17 | public static function go($I) |
||
| 18 | { |
||
| 19 | $page = new self($I); |
||
| 20 | return $page->goPage('/setting/shop/payment', '支払方法設定基本情報設定'); |
||
| 21 | } |
||
| 22 | |||
| 23 | public static function at($I) |
||
| 24 | { |
||
| 25 | $page = new self($I); |
||
| 26 | return $page->atPage('支払方法設定基本情報設定'); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function 一覧_支払方法($rowNum) |
||
| 30 | { |
||
| 31 | $rowNum = $rowNum + 1; |
||
| 32 | return ".c-contentsArea__primaryCol .c-primaryCol .card-body ul li:nth-child(${rowNum})"; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function 一覧_下に($rowNum) |
||
| 36 | { |
||
| 37 | $rowNum = $rowNum + 1; |
||
| 38 | $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum}) .justify-content-around a.action-down "); |
||
| 39 | return $this; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function 一覧_編集($rowNum) |
||
| 43 | { |
||
| 44 | $rowNum = $rowNum + 1; |
||
| 45 | $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum})> div > div:nth-child(2) a "); |
||
| 46 | |||
| 47 | } |
||
| 48 | |||
| 49 | public function 一覧_削除($rowNum) |
||
| 50 | { |
||
| 51 | $rowNum = $rowNum + 1; |
||
| 52 | $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum}) > div > div.col-3.text-right > div > div:nth-child(3) > a"); |
||
| 53 | // accept modal |
||
| 54 | $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum}) > div > div.col-3.text-right > div > div:nth-child(3) > div > div > div > div.modal-footer > a:nth-child(2)"); |
||
| 55 | } |
||
| 56 | |||
| 57 | public function 新規入力() |
||
| 58 | { |
||
| 59 | $this->tester->click('.c-contentsArea__primaryCol button.btn-ec-regular'); |
||
| 60 | } |
||
| 61 | |||
| 62 | public function 一覧_上に($rowNum) |
||
| 63 | { |
||
| 64 | $rowNum = $rowNum + 1; |
||
| 65 | $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum}) .justify-content-around a.action-up "); |
||
| 66 | return $this; |
||
| 67 | } |
||
| 68 | } |