1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
|
4
|
|
|
namespace Page\Admin; |
5
|
|
|
|
6
|
|
|
|
7
|
|
|
class CustomerEditPage extends AbstractAdminPageStyleGuide |
|
|
|
|
8
|
|
|
{ |
9
|
|
|
|
10
|
|
|
public static $登録完了メッセージ = '#page_admin_customer_edit > div > div.c-contentsArea > div.alert.alert-success.alert-dismissible.fade.show.m-3 > span'; |
|
|
|
|
11
|
|
|
|
12
|
|
|
/** |
|
|
|
|
13
|
|
|
* CustomerRegisterPage constructor. |
14
|
|
|
*/ |
15
|
|
|
public function __construct(\AcceptanceTester $I) |
16
|
|
|
{ |
17
|
|
|
parent::__construct($I); |
18
|
|
|
} |
19
|
|
|
|
20
|
|
|
public static function go($I) |
21
|
|
|
{ |
22
|
|
|
$page = new self($I); |
23
|
|
|
return $page->goPage('/customer/new', '会員登録・編集会員管理'); |
|
|
|
|
24
|
|
|
} |
25
|
|
|
|
26
|
|
|
public static function at($I) |
27
|
|
|
{ |
28
|
|
|
$page = new self($I); |
29
|
|
|
return $page->atPage('会員登録・編集会員管理'); |
|
|
|
|
30
|
|
|
} |
31
|
|
|
|
32
|
|
|
public function 入力_姓($value) |
|
|
|
|
33
|
|
|
{ |
34
|
|
|
$this->tester->fillField(['id' => 'admin_customer_name_name01'], $value); |
35
|
|
|
return $this; |
|
|
|
|
36
|
|
|
} |
37
|
|
|
|
38
|
|
|
public function 入力_名($value) |
|
|
|
|
39
|
|
|
{ |
40
|
|
|
$this->tester->fillField(['id' => 'admin_customer_name_name02'], $value); |
41
|
|
|
return $this; |
|
|
|
|
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
public function 入力_セイ($value) |
|
|
|
|
45
|
|
|
{ |
46
|
|
|
$this->tester->fillField(['id' => 'admin_customer_kana_kana01'], $value); |
47
|
|
|
return $this; |
|
|
|
|
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
public function 入力_メイ($value) |
|
|
|
|
51
|
|
|
{ |
52
|
|
|
$this->tester->fillField(['id' => 'admin_customer_kana_kana02'], $value); |
53
|
|
|
return $this; |
|
|
|
|
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
public function 入力_郵便番号($value) |
|
|
|
|
57
|
|
|
{ |
58
|
|
|
$this->tester->fillField(['id' => 'admin_customer_postal_code'], $value); |
59
|
|
|
|
60
|
|
|
return $this; |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
public function 入力_都道府県($value) |
|
|
|
|
64
|
|
|
{ |
65
|
|
|
$this->tester->selectOption(['id' => 'admin_customer_address_pref'], $value); |
66
|
|
|
return $this; |
|
|
|
|
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
public function 入力_市区町村名($value) |
|
|
|
|
70
|
|
|
{ |
71
|
|
|
$this->tester->fillField(['id' => 'admin_customer_address_addr01'], $value); |
72
|
|
|
return $this; |
|
|
|
|
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
public function 入力_番地_ビル名($value) |
|
|
|
|
76
|
|
|
{ |
77
|
|
|
$this->tester->fillField(['id' => 'admin_customer_address_addr02'], $value); |
78
|
|
|
return $this; |
|
|
|
|
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
public function 入力_Eメール($value) |
|
|
|
|
82
|
|
|
{ |
83
|
|
|
$this->tester->fillField(['id' => 'admin_customer_email'], $value); |
84
|
|
|
return $this; |
|
|
|
|
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
public function 入力_電話番号($value) |
|
|
|
|
88
|
|
|
{ |
89
|
|
|
$this->tester->fillField(['id' => 'admin_customer_phone_number'], $value); |
90
|
|
|
|
91
|
|
|
return $this; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
public function 入力_パスワード($value) |
|
|
|
|
95
|
|
|
{ |
96
|
|
|
$this->tester->fillField(['id' => 'admin_customer_password_first'], $value); |
97
|
|
|
return $this; |
|
|
|
|
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
public function 入力_パスワード確認($value) |
|
|
|
|
101
|
|
|
{ |
102
|
|
|
$this->tester->fillField(['id' => 'admin_customer_password_second'], $value); |
103
|
|
|
return $this; |
|
|
|
|
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
public function 登録() |
|
|
|
|
107
|
|
|
{ |
108
|
|
|
$this->tester->click('#customer_form > div.c-conversionArea > div > div > div:nth-child(2) > div > div:nth-child(2) > button'); |
109
|
|
|
return $this; |
|
|
|
|
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
} |
113
|
|
|
|