@@ 16-52 (lines=37) @@ | ||
13 | ||
14 | namespace Page\Admin; |
|
15 | ||
16 | class MailSettingsPage extends AbstractAdminPageStyleGuide |
|
17 | { |
|
18 | public static $登録完了メッセージ = '#page_admin_setting_shop_mail_edit > div.c-container > div.c-contentsArea > div.alert.alert-success.alert-dismissible.fade.show.m-3 > span'; |
|
19 | ||
20 | public function __construct(\AcceptanceTester $I) |
|
21 | { |
|
22 | parent::__construct($I); |
|
23 | } |
|
24 | ||
25 | public static function go($I) |
|
26 | { |
|
27 | $page = new self($I); |
|
28 | ||
29 | return $page->goPage('/setting/shop/mail', 'メール設定店舗設定'); |
|
30 | } |
|
31 | ||
32 | public function 入力_テンプレート($value) |
|
33 | { |
|
34 | $this->tester->selectOption(['id' => 'mail_template'], $value); |
|
35 | ||
36 | return $this; |
|
37 | } |
|
38 | ||
39 | public function 入力_件名($value) |
|
40 | { |
|
41 | $this->tester->fillField(['id' => 'mail_mail_subject'], $value); |
|
42 | ||
43 | return $this; |
|
44 | } |
|
45 | ||
46 | public function 登録() |
|
47 | { |
|
48 | $this->tester->click('#form1 #aside_column button'); |
|
49 | ||
50 | return $this; |
|
51 | } |
|
52 | } |
|
53 |
@@ 16-57 (lines=42) @@ | ||
13 | ||
14 | namespace Page\Admin; |
|
15 | ||
16 | class PaymentEditPage extends AbstractAdminPageStyleGuide |
|
17 | { |
|
18 | public static $登録完了メッセージ = '.c-container .c-contentsArea div.alert-success'; |
|
19 | ||
20 | public function __construct(\AcceptanceTester $I) |
|
21 | { |
|
22 | parent::__construct($I); |
|
23 | } |
|
24 | ||
25 | public static function at($I) |
|
26 | { |
|
27 | $page = new self($I); |
|
28 | ||
29 | return $page->atPage('支払方法設定店舗設定'); |
|
30 | } |
|
31 | ||
32 | public function 入力_支払方法($value) |
|
33 | { |
|
34 | $this->tester->fillField(['id' => 'payment_register_method'], $value); |
|
35 | ||
36 | return $this; |
|
37 | } |
|
38 | ||
39 | public function 入力_手数料($value) |
|
40 | { |
|
41 | $this->tester->fillField(['id' => 'payment_register_charge'], $value); |
|
42 | ||
43 | return $this; |
|
44 | } |
|
45 | ||
46 | public function 入力_利用条件下限($value) |
|
47 | { |
|
48 | $this->tester->fillField(['id' => 'payment_register_rule_min'], $value); |
|
49 | ||
50 | return $this; |
|
51 | } |
|
52 | ||
53 | public function 登録() |
|
54 | { |
|
55 | $this->tester->click('#form1 > .c-conversionArea > .c-conversionArea__container button.btn-ec-conversion'); |
|
56 | } |
|
57 | } |
|
58 |
@@ 16-55 (lines=40) @@ | ||
13 | ||
14 | namespace Page\Admin; |
|
15 | ||
16 | class ShippingCsvUploadPage extends AbstractAdminPageStyleGuide |
|
17 | { |
|
18 | public static $完了メッセージ = 'div.alert-primary'; |
|
19 | ||
20 | public function __construct(\AcceptanceTester $I) |
|
21 | { |
|
22 | parent::__construct($I); |
|
23 | } |
|
24 | ||
25 | /** |
|
26 | * @param \AcceptanceTester $I |
|
27 | */ |
|
28 | public static function go($I) |
|
29 | { |
|
30 | $page = new ProductCsvUploadPage($I); |
|
31 | ||
32 | return $page->goPage('/order/shipping_csv_upload', '出荷CSV登録受注管理'); |
|
33 | } |
|
34 | ||
35 | public function 入力_CSVファイル($fileName) |
|
36 | { |
|
37 | $this->tester->attachFile(['id' => 'admin_csv_import_import_file'], $fileName); |
|
38 | ||
39 | return $this; |
|
40 | } |
|
41 | ||
42 | public function CSVアップロード() |
|
43 | { |
|
44 | $this->tester->click(['id' => 'upload-button']); |
|
45 | ||
46 | return $this; |
|
47 | } |
|
48 | ||
49 | public function 雛形ダウンロード() |
|
50 | { |
|
51 | $this->tester->click(['id' => 'download-button']); |
|
52 | ||
53 | return $this; |
|
54 | } |
|
55 | } |
|
56 |