9 use Magento\Catalog\Test\Page\Product\CatalogProductView;
10 use Magento\Mtf\Client\BrowserInterface;
11 use Magento\Mtf\Constraint\AbstractConstraint;
12 use Magento\Mtf\Fixture\FixtureInterface;
13 use Magento\Cms\Test\Page\CmsIndex;
31 CatalogProductView $catalogProductView,
33 BrowserInterface $browser,
34 FixtureInterface $initialProduct,
37 $browser->open($_ENV[
'app_frontend_url'] . $initialProduct->getUrlKey() .
'.html');
39 $cmsIndex->getStoreSwitcherBlock()->selectStoreView(
$store->getName());
40 $cmsIndex->getLinksBlock()->waitWelcomeMessage();
41 \PHPUnit\Framework\Assert::assertEquals(
43 $catalogProductView->getViewBlock()->getPriceBlock()->getPrice(),
44 sprintf(
'Wrong product price is displayed for %s store view.',
$store->getName())
56 return 'Product name is correct on the storefront';
processAssert(CatalogProductView $catalogProductView, CmsIndex $cmsIndex, BrowserInterface $browser, FixtureInterface $initialProduct, array $stores)