|
@@ 121-153 (lines=33) @@
|
| 118 |
|
$ShippingListPage->一覧_削除キャンセル(); |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
public function shipping一括発送済み更新(\AcceptanceTester $I) |
| 122 |
|
{ |
| 123 |
|
$I->getScenario()->incomplete('受注管理画面に統合'); |
| 124 |
|
$I->wantTo('EA0902-UC01-T01 一括発送済み更新'); |
| 125 |
|
|
| 126 |
|
// 一括操作用の受注を生成しておく |
| 127 |
|
$createCustomer = Fixtures::get('createCustomer'); |
| 128 |
|
$createOrders = Fixtures::get('createOrders'); |
| 129 |
|
$createOrders($createCustomer(), 10, array()); |
| 130 |
|
|
| 131 |
|
$I->resetEmails(); |
| 132 |
|
|
| 133 |
|
$config = Fixtures::get('config'); |
| 134 |
|
// ステータスを出荷準備中にリセット |
| 135 |
|
$resetShippingStatusPrepared = Fixtures::get('resetShippingStatusPrepared'); // Closure |
| 136 |
|
$resetShippingStatusPrepared(); |
| 137 |
|
|
| 138 |
|
$TargetShippings = Fixtures::get('findShippings'); // Closure |
| 139 |
|
$Shippings = $TargetShippings(); |
| 140 |
|
$ShippingListPage = ShippingManagePage::go($I); |
| 141 |
|
$I->see('検索結果 : '.count($Shippings).' 件が該当しました', ShippingManagePage::$検索結果_メッセージ); |
| 142 |
|
|
| 143 |
|
$ShippingListPage |
| 144 |
|
->一覧_全選択() |
| 145 |
|
->一括発送済み更新(); |
| 146 |
|
|
| 147 |
|
$I->wait(5); |
| 148 |
|
$I->waitForElementVisible(['xpath' => '//*[@id="sentUpdateModal"]/div/div/div[2]/p']); |
| 149 |
|
$I->see('処理完了。10件のメールを送信しました', ['xpath' => '//*[@id="sentUpdateModal"]/div/div/div[2]/p']); |
| 150 |
|
$I->seeEmailCount(20); |
| 151 |
|
|
| 152 |
|
$I->click(['id' => 'bulkChangeComplete']); |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
public function shipping一括発送済みメール送信(\AcceptanceTester $I) |
| 156 |
|
{ |
|
@@ 155-187 (lines=33) @@
|
| 152 |
|
$I->click(['id' => 'bulkChangeComplete']); |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
public function shipping一括発送済みメール送信(\AcceptanceTester $I) |
| 156 |
|
{ |
| 157 |
|
$I->getScenario()->incomplete('受注管理画面に統合'); |
| 158 |
|
$I->wantTo('EA0902-UC02-T01 一括発送済みメール送信'); |
| 159 |
|
|
| 160 |
|
// 一括操作用の受注を生成しておく |
| 161 |
|
$createCustomer = Fixtures::get('createCustomer'); |
| 162 |
|
$createOrders = Fixtures::get('createOrders'); |
| 163 |
|
$createOrders($createCustomer(), 10, array()); |
| 164 |
|
|
| 165 |
|
$I->resetEmails(); |
| 166 |
|
|
| 167 |
|
$config = Fixtures::get('config'); |
| 168 |
|
// ステータスを出荷済みにリセット |
| 169 |
|
$resetShippingStatusShipped = Fixtures::get('resetShippingStatusShipped'); // Closure |
| 170 |
|
$resetShippingStatusShipped(); |
| 171 |
|
|
| 172 |
|
$TargetShippings = Fixtures::get('findShippings'); // Closure |
| 173 |
|
$Shippings = $TargetShippings(); |
| 174 |
|
$ShippingListPage = ShippingManagePage::go($I); |
| 175 |
|
$I->see('検索結果 : '.count($Shippings).' 件が該当しました', ShippingManagePage::$検索結果_メッセージ); |
| 176 |
|
|
| 177 |
|
$ShippingListPage |
| 178 |
|
->一覧_全選択() |
| 179 |
|
->一括発送済みメール送信(); |
| 180 |
|
|
| 181 |
|
$I->wait(5); |
| 182 |
|
$I->waitForElementVisible(['xpath' => '//*[@id="sentUpdateModal"]/div/div/div[2]/p']); |
| 183 |
|
$I->see('処理完了。10件のメールを送信しました', ['xpath' => '//*[@id="sentUpdateModal"]/div/div/div[2]/p']); |
| 184 |
|
$I->seeEmailCount(20); |
| 185 |
|
|
| 186 |
|
$I->click(['id' => 'bulkChangeComplete']); |
| 187 |
|
} |
| 188 |
|
|
| 189 |
|
public function shipping出荷登録(\AcceptanceTester $I) |
| 190 |
|
{ |