codeception/_support/Page/Admin/CustomerAgreementSettingPage.php 1 location
|
@@ 7-32 (lines=26) @@
|
| 4 |
|
namespace Page\Admin; |
| 5 |
|
|
| 6 |
|
|
| 7 |
|
class CustomerAgreementSettingPage extends AbstractAdminPage |
| 8 |
|
{ |
| 9 |
|
public static $登録完了メッセージ = '#main .container-fluid div:nth-child(1) .alert-success'; |
| 10 |
|
|
| 11 |
|
public function __construct(\AcceptanceTester $I) |
| 12 |
|
{ |
| 13 |
|
parent::__construct($I); |
| 14 |
|
} |
| 15 |
|
|
| 16 |
|
public static function go($I) |
| 17 |
|
{ |
| 18 |
|
$page = new self($I); |
| 19 |
|
return $page->goPage('/setting/shop/customer_agreement', 'ショップ設定利用規約管理'); |
| 20 |
|
} |
| 21 |
|
|
| 22 |
|
public function 入力_会員規約($value) |
| 23 |
|
{ |
| 24 |
|
$this->tester->fillField(['id' => 'customer_agreement_customer_agreement'], $value); |
| 25 |
|
return $this; |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
public function 登録() |
| 29 |
|
{ |
| 30 |
|
$this->tester->click('#form1 #aside_column button'); |
| 31 |
|
} |
| 32 |
|
} |
codeception/_support/Page/Admin/ShopSettingPage.php 1 location
|
@@ 7-33 (lines=27) @@
|
| 4 |
|
namespace Page\Admin; |
| 5 |
|
|
| 6 |
|
|
| 7 |
|
class ShopSettingPage extends AbstractAdminPageStyleGuide |
| 8 |
|
{ |
| 9 |
|
public static $登録完了メッセージ = '#page_admin_setting_shop > div > div.c-contentsArea > div.alert.alert-success.alert-dismissible.fade.show.m-3 > span'; |
| 10 |
|
|
| 11 |
|
public function __construct(\AcceptanceTester $I) |
| 12 |
|
{ |
| 13 |
|
parent::__construct($I); |
| 14 |
|
} |
| 15 |
|
|
| 16 |
|
public static function go($I) |
| 17 |
|
{ |
| 18 |
|
$page = new self($I); |
| 19 |
|
return $page->goPage('/setting/shop', 'ショップマスター基本情報設定'); |
| 20 |
|
} |
| 21 |
|
|
| 22 |
|
public function 入力_会社名($value) |
| 23 |
|
{ |
| 24 |
|
$this->tester->fillField(['id' => 'shop_master_company_name'], $value); |
| 25 |
|
return $this; |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
public function 登録() |
| 29 |
|
{ |
| 30 |
|
$this->tester->click('#point_form > div.c-conversionArea > div > div > div:nth-child(2) > div > div > button'); |
| 31 |
|
return $this; |
| 32 |
|
} |
| 33 |
|
} |
codeception/_support/Page/Front/ShippingEditPage.php 1 location
|
@@ 27-52 (lines=26) @@
|
| 24 |
|
namespace Page\Front; |
| 25 |
|
|
| 26 |
|
|
| 27 |
|
class ShippingEditPage extends AbstractFrontPage |
| 28 |
|
{ |
| 29 |
|
public function __construct(\AcceptanceTester $I) |
| 30 |
|
{ |
| 31 |
|
parent::__construct($I); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
public static function at($I) |
| 35 |
|
{ |
| 36 |
|
$page = new self($I); |
| 37 |
|
$page->tester->see('お届け先の変更', 'div.ec-pageHeader h1'); |
| 38 |
|
return $page; |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
public function 入力_姓($value) |
| 42 |
|
{ |
| 43 |
|
$this->tester->fillField(['id' => 'shopping_shipping_name_name01'], $value); |
| 44 |
|
return $this; |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
public function 登録する() |
| 48 |
|
{ |
| 49 |
|
$this->tester->click('div.ec-RegisterRole__actions button.ec-blockBtn--action'); |
| 50 |
|
return $this; |
| 51 |
|
} |
| 52 |
|
} |