From 908b76c574e6a81f082ed4437814209d0814f0af Mon Sep 17 00:00:00 2001 From: daichi_otani Date: Mon, 13 May 2024 10:49:13 +0900 Subject: [PATCH] add E2E test for new item block. --- codeception/acceptance/EF06OtherCest.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/codeception/acceptance/EF06OtherCest.php b/codeception/acceptance/EF06OtherCest.php index b57c0e38285..6c8a448ad4a 100644 --- a/codeception/acceptance/EF06OtherCest.php +++ b/codeception/acceptance/EF06OtherCest.php @@ -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'); + } }