Skip to content

Commit

Permalink
Merge pull request #5623 from nobuhiko/i5613
Browse files Browse the repository at this point in the history
E2Eテスト 商品一覧のページングの修正
  • Loading branch information
chihiro-adachi authored Aug 26, 2022
2 parents 1b5440f + 4c75665 commit 16561c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions codeception/acceptance/EF02ProductCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,24 @@ public function product_商品一覧ページング(AcceptanceTester $I)
// 選択されたリンクに応じてページングされる

// '2'をクリック
$I->scrollTo(['css' => 'li.ec-pager__item--active']);
$I->wait(0.5);
$I->click(['xpath' => "//li[@class='ec-pager__item'][position()=1]/a"]);
$I->scrollTo(['css' => 'li.ec-pager__item--active']);
$I->wait(1);
$I->see('2', ['css' => 'li.ec-pager__item--active']);

// '前へ'をクリック
$I->scrollTo(['css' => 'li.ec-pager__item--active']);
$I->wait(0.5);
$I->click(['xpath' => "//li[@class='ec-pager__item'][position()=1]/a"]);
$I->scrollTo(['css' => 'li.ec-pager__item--active']);
$I->wait(1);
$I->see('1', ['css' => 'li.ec-pager__item--active']);

// '次へ'をクリック
$I->scrollTo(['css' => 'li.ec-pager__item--active']);
$I->wait(0.5);
$I->click(['xpath' => "//li[@class='ec-pager__item'][position()=2]/a"]);
$I->scrollTo(['css' => 'li.ec-pager__item--active']);
$I->wait(1);
Expand Down

0 comments on commit 16561c7

Please sign in to comment.