| @@ 49-63 (lines=15) @@ | ||
| 46 | $I->see('新着情報', '.ec-news__title'); |
|
| 47 | } |
|
| 48 | ||
| 49 | public function order_カート削除(\AcceptanceTester $I) |
|
| 50 | { |
|
| 51 | $I->wantTo('EF0301-UC01-T02 カート 削除'); |
|
| 52 | $createCustomer = Fixtures::get('createCustomer'); |
|
| 53 | $customer = $createCustomer(); |
|
| 54 | $I->loginAsMember($customer->getEmail(), 'password'); |
|
| 55 | ||
| 56 | ProductDetailPage::go($I, 2) |
|
| 57 | ->カートに入れる(1); |
|
| 58 | ||
| 59 | $I->acceptPopup(); |
|
| 60 | ||
| 61 | CartPage::go($I) |
|
| 62 | ->商品削除(1); |
|
| 63 | } |
|
| 64 | ||
| 65 | public function order_カート数量増やす(\AcceptanceTester $I) |
|
| 66 | { |
|
| @@ 65-85 (lines=21) @@ | ||
| 62 | ->商品削除(1); |
|
| 63 | } |
|
| 64 | ||
| 65 | public function order_カート数量増やす(\AcceptanceTester $I) |
|
| 66 | { |
|
| 67 | $I->wantTo('EF0301-UC01-T03 カート 数量増やす'); |
|
| 68 | ||
| 69 | $createCustomer = Fixtures::get('createCustomer'); |
|
| 70 | $customer = $createCustomer(); |
|
| 71 | $I->loginAsMember($customer->getEmail(), 'password'); |
|
| 72 | ||
| 73 | // 商品詳細パーコレータ カートへ |
|
| 74 | ProductDetailPage::go($I, 2) |
|
| 75 | ->カートに入れる(1); |
|
| 76 | ||
| 77 | $I->acceptPopup(); |
|
| 78 | ||
| 79 | $cartPage = CartPage::go($I) |
|
| 80 | ->商品数量増やす(1); |
|
| 81 | ||
| 82 | // 確認 |
|
| 83 | $I->assertEquals('2', $cartPage->商品数量(1)); |
|
| 84 | ||
| 85 | } |
|
| 86 | ||
| 87 | public function order_カート数量減らす(\AcceptanceTester $I) |
|
| 88 | { |
|
| @@ 87-105 (lines=19) @@ | ||
| 84 | ||
| 85 | } |
|
| 86 | ||
| 87 | public function order_カート数量減らす(\AcceptanceTester $I) |
|
| 88 | { |
|
| 89 | $I->wantTo('EF0301-UC01-T04 カート 数量減らす'); |
|
| 90 | $createCustomer = Fixtures::get('createCustomer'); |
|
| 91 | $customer = $createCustomer(); |
|
| 92 | $I->loginAsMember($customer->getEmail(), 'password'); |
|
| 93 | ||
| 94 | // 商品詳細パーコレータ カートへ |
|
| 95 | ProductDetailPage::go($I, 2) |
|
| 96 | ->カートに入れる(2); |
|
| 97 | ||
| 98 | $I->acceptPopup(); |
|
| 99 | ||
| 100 | $cartPage = CartPage::go($I) |
|
| 101 | ->商品数量減らす(1); |
|
| 102 | ||
| 103 | // 確認 |
|
| 104 | $I->assertEquals('1', $cartPage->商品数量(1)); |
|
| 105 | } |
|
| 106 | ||
| 107 | public function order_ログインユーザ購入(\AcceptanceTester $I) |
|
| 108 | { |
|
| @@ 259-277 (lines=19) @@ | ||
| 256 | $I->see('0 件', 'div.ec-layoutRole div.ec-layoutRole__contents p.ec-para-nomal strong'); |
|
| 257 | } |
|
| 258 | ||
| 259 | public function mypage_退会手続き未実施(\AcceptanceTester $I) |
|
| 260 | { |
|
| 261 | $I->wantTo('EF0507-UC03-T01 Mypage 退会手続き 未実施'); |
|
| 262 | $createCustomer = Fixtures::get('createCustomer'); |
|
| 263 | $customer = $createCustomer(); |
|
| 264 | $I->loginAsMember($customer->getEmail(), 'password'); |
|
| 265 | ||
| 266 | // TOPページ>マイページ>退会手続き |
|
| 267 | MyPage::go($I) |
|
| 268 | ->退会手続き(); |
|
| 269 | ||
| 270 | // 会員退会手続きへ |
|
| 271 | $I->click('div.ec-withdrawRole form button'); |
|
| 272 | ||
| 273 | // 未実施 |
|
| 274 | $I->click('div.ec-withdrawConfirmRole form a.ec-withdrawConfirmRole__cancel'); |
|
| 275 | ||
| 276 | MyPage::at($I); |
|
| 277 | } |
|
| 278 | ||
| 279 | public function mypage_退会手続き(\AcceptanceTester $I) |
|
| 280 | { |
|