| @@ 30-48 (lines=19) @@ | ||
| 27 | { |
|
| 28 | } |
|
| 29 | ||
| 30 | public function order_カート買い物を続ける(\AcceptanceTester $I) |
|
| 31 | { |
|
| 32 | $I->wantTo('EF0301-UC01-T01 カート 買い物を続ける'); |
|
| 33 | $createCustomer = Fixtures::get('createCustomer'); |
|
| 34 | $customer = $createCustomer(); |
|
| 35 | $I->loginAsMember($customer->getEmail(), 'password'); |
|
| 36 | ||
| 37 | // 商品詳細パーコレータ カートへ |
|
| 38 | ProductDetailPage::go($I, 2) |
|
| 39 | ->カートに入れる(1); |
|
| 40 | ||
| 41 | $I->acceptPopup(); |
|
| 42 | ||
| 43 | CartPage::go($I) |
|
| 44 | ->お買い物を続ける(); |
|
| 45 | ||
| 46 | // トップページ |
|
| 47 | $I->see('新着情報', '.ec-news__title'); |
|
| 48 | } |
|
| 49 | ||
| 50 | public function order_カート削除(\AcceptanceTester $I) |
|
| 51 | { |
|
| @@ 50-64 (lines=15) @@ | ||
| 47 | $I->see('新着情報', '.ec-news__title'); |
|
| 48 | } |
|
| 49 | ||
| 50 | public function order_カート削除(\AcceptanceTester $I) |
|
| 51 | { |
|
| 52 | $I->wantTo('EF0301-UC01-T02 カート 削除'); |
|
| 53 | $createCustomer = Fixtures::get('createCustomer'); |
|
| 54 | $customer = $createCustomer(); |
|
| 55 | $I->loginAsMember($customer->getEmail(), 'password'); |
|
| 56 | ||
| 57 | ProductDetailPage::go($I, 2) |
|
| 58 | ->カートに入れる(1); |
|
| 59 | ||
| 60 | $I->acceptPopup(); |
|
| 61 | ||
| 62 | CartPage::go($I) |
|
| 63 | ->商品削除(1); |
|
| 64 | } |
|
| 65 | ||
| 66 | public function order_カート数量増やす(\AcceptanceTester $I) |
|
| 67 | { |
|
| @@ 66-86 (lines=21) @@ | ||
| 63 | ->商品削除(1); |
|
| 64 | } |
|
| 65 | ||
| 66 | public function order_カート数量増やす(\AcceptanceTester $I) |
|
| 67 | { |
|
| 68 | $I->wantTo('EF0301-UC01-T03 カート 数量増やす'); |
|
| 69 | ||
| 70 | $createCustomer = Fixtures::get('createCustomer'); |
|
| 71 | $customer = $createCustomer(); |
|
| 72 | $I->loginAsMember($customer->getEmail(), 'password'); |
|
| 73 | ||
| 74 | // 商品詳細パーコレータ カートへ |
|
| 75 | ProductDetailPage::go($I, 2) |
|
| 76 | ->カートに入れる(1); |
|
| 77 | ||
| 78 | $I->acceptPopup(); |
|
| 79 | ||
| 80 | $cartPage = CartPage::go($I) |
|
| 81 | ->商品数量増やす(1); |
|
| 82 | ||
| 83 | // 確認 |
|
| 84 | $I->assertEquals('2', $cartPage->商品数量(1)); |
|
| 85 | ||
| 86 | } |
|
| 87 | ||
| 88 | public function order_カート数量減らす(\AcceptanceTester $I) |
|
| 89 | { |
|
| @@ 88-106 (lines=19) @@ | ||
| 85 | ||
| 86 | } |
|
| 87 | ||
| 88 | public function order_カート数量減らす(\AcceptanceTester $I) |
|
| 89 | { |
|
| 90 | $I->wantTo('EF0301-UC01-T04 カート 数量減らす'); |
|
| 91 | $createCustomer = Fixtures::get('createCustomer'); |
|
| 92 | $customer = $createCustomer(); |
|
| 93 | $I->loginAsMember($customer->getEmail(), 'password'); |
|
| 94 | ||
| 95 | // 商品詳細パーコレータ カートへ |
|
| 96 | ProductDetailPage::go($I, 2) |
|
| 97 | ->カートに入れる(2); |
|
| 98 | ||
| 99 | $I->acceptPopup(); |
|
| 100 | ||
| 101 | $cartPage = CartPage::go($I) |
|
| 102 | ->商品数量減らす(1); |
|
| 103 | ||
| 104 | // 確認 |
|
| 105 | $I->assertEquals('1', $cartPage->商品数量(1)); |
|
| 106 | } |
|
| 107 | ||
| 108 | public function order_ログインユーザ購入(\AcceptanceTester $I) |
|
| 109 | { |
|
| @@ 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 | { |
|