Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2Eテスト 商品一覧のページングの修正 #5623

Merged
merged 1 commit into from
Aug 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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