Skip to content

Commit

Permalink
Codeception のエラー修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed May 28, 2022
1 parent 9e404fc commit 370b241
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion codeception/_support/Page/Front/EntryPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function 新規会員登録($form = [])
'entry[user_policy_check]' => '1',
];
$this->tester->submitForm(['css' => '.ec-layoutRole__main form'], $form, ['css' => 'button.ec-blockBtn--action']);
$this->tester->see($form['entry[email][first]']);
$this->tester->seeInField(['id' => 'entry_email_first'], $form['entry[email][first]']);
$this->tester->click('.ec-registerRole form button.ec-blockBtn--action');

return $this;
Expand Down
6 changes: 3 additions & 3 deletions codeception/acceptance/EA07BasicinfoCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public function basicinfo_ポイント設定_有効(AcceptanceTester $I)
CustomerManagePage::go($I)
->検索($customer->getEmail())
->一覧_編集(1);
$I->seeInField(CustomerManagePage::$ポイント, $customerPoint);
$I->seeInField(CustomerManagePage::$ポイント, (string)$customerPoint);

$I->expect('マイベージにて、ポイントが付与されていること');
MyPage::go($I);
Expand Down Expand Up @@ -394,13 +394,13 @@ public function basicinfo_ポイント設定_有効(AcceptanceTester $I)
->検索($customer->getEmail())
->一覧_編集(1);
$I->see($expected_discount, OrderEditPage::$ポイント値引き額);
$I->seeInField(OrderEditPage::$利用ポイント, $expected_point);
$I->seeInField(OrderEditPage::$利用ポイント, (string)$expected_point);

$I->expect('管理画面・会員管理にて、ポイントが減少していること');
CustomerManagePage::go($I)
->検索($customer->getEmail())
->一覧_編集(1);
$I->seeInField(CustomerManagePage::$ポイント, $customerPoint);
$I->seeInField(CustomerManagePage::$ポイント, (string)$customerPoint);

$I->amGoingTo('マイベージ 注文詳細にて、利用ポイントが計算されていること');
MyPage::go($I)->注文履歴詳細(0);
Expand Down
4 changes: 2 additions & 2 deletions codeception/acceptance/EF03OrderCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1038,8 +1038,8 @@ public function order_複数ブラウザ_片方でログインしてカートに
$CartPage = CartPage::go($I);
$I->assertEquals(2, $CartPage->明細数());
$itemNames = $I->grabMultiple(['css' => '.ec-cartRow__name a']);
$I->assertStringContainsString('彩のジェラートCUBE', $itemNames);
$I->assertStringContainsString('チェリーアイスサンド', $itemNames);
$I->assertContains('彩のジェラートCUBE', $itemNames);
$I->assertContains('チェリーアイスサンド', $itemNames);

/*
* ブラウザ1のカートもマージされている
Expand Down
2 changes: 1 addition & 1 deletion codeception/acceptance/EF06OtherCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public function other_お問い合わせ2(AcceptanceTester $I)
'contact[name][name01]' => '',
'contact[name][name02]' => '',
'contact[postal_code]' => '5300001',
'contact[address][pref]' => 27,
'contact[address][pref]' => '27',
'contact[address][addr01]' => '大阪市北区梅田',
'contact[phone_number]' => '111111111',
'contact[contents]' => 'お問い合わせ内容の送信',
Expand Down

0 comments on commit 370b241

Please sign in to comment.