Skip to content

Commit

Permalink
Merge pull request #6193 from dotani1111/dev/add_e2e_auto_new_item_block
Browse files Browse the repository at this point in the history
add E2E test for new item block.
  • Loading branch information
ji-eunsoo committed May 15, 2024
2 parents 0fb690c + 908b76c commit 7654034
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions codeception/acceptance/EF06OtherCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,4 +382,23 @@ public function other_サイトマップ_商品(AcceptanceTester $I)
$I->amOnPage($sitemapUrl);
$I->see($productLoc);
}

/**
* @group block
* @group vaddy
*/
public function other_block_新着商品_自動取得(AcceptanceTester $I)
{
$I->wantTo('EF0609-UC01-T01_other_block_新着商品_自動取得)');
$I->amOnPage('/block/auto_new_item');

// タイトル
$I->see('NEW ITEM 新着商品');
// 商品画像
$I->seeElement('body > div > div > div > div:nth-child(2) > a > img');
// 商品名
$I->seeElement('body > div > div > div > div:nth-child(2) > a > p.ec-newItemRole__listItemTitle');
// 商品金額
$I->seeElement('body > div > div > div > div:nth-child(2) > a > p.ec-newItemRole__listItemPrice');
}
}

0 comments on commit 7654034

Please sign in to comment.