Skip to content

Commit

Permalink
ループ回数調整
Browse files Browse the repository at this point in the history
  • Loading branch information
kentanakayrglm committed Sep 20, 2023
1 parent 86bbd89 commit 4dcd7ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
13 changes: 7 additions & 6 deletions codeception/_support/Page/Front/EntryPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,17 @@ public function 新規会員登録($form = [])
return $this;
}

public function 新規会員登録_メアド指定($email, $form = [])
public function 新規会員登録_入力エラー($form = [])
{
$this->tester->amOnPage('/entry');
$email = uniqid().microtime(true).'@example.com';

$form += [
'entry[name][name01]' => '',
'entry[name][name02]' => '',
'entry[kana][kana01]' => 'セイ',
'entry[kana][kana02]' => 'メイ',
'entry[postal_code]' => '530-0001',
'entry[name][name01]' => '',
'entry[name][name02]' => '',
'entry[kana][kana01]' => '',
'entry[kana][kana02]' => '',
'entry[postal_code]' => '',
'entry[address][pref]' => ['value' => '27'],
'entry[address][addr01]' => '大阪市北区',
'entry[address][addr02]' => '梅田2-4-9 ブリーゼタワー13F',
Expand Down
11 changes: 5 additions & 6 deletions codeception/acceptance/EF09ThrottlingCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,16 +755,15 @@ public function 会員登録_入力(AcceptanceTester $I)

$email = uniqid().microtime(true).'@example.com';

// EF0901-UC01-T05_会員登録で12回消化済みであるが標準リミットである25回実行
for ($i = 0; $i < 25; $i++) {
$I->expect('会員登録を行います:'.$i);
// EF0901-UC01-T05_会員登録で12回消化済み
for ($i = 12; $i < 25; $i++) {
$I->expect('会員登録を行います:');
\Page\Front\EntryPage::go($I)
->新規会員登録_メアド指定($email);
->新規会員登録_入力エラー();
}

$I->expect('試行回数上限を超過します');
\Page\Front\EntryPage::go($I)
->新規会員登録_メアド指定($email);
->新規会員登録_入力エラー();
$I->see('試行回数の上限を超過しました。しばらくお待ちいただき、再度お試しください。', 'p.ec-reportDescription');
}

Expand Down

0 comments on commit 4dcd7ff

Please sign in to comment.