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;
32 CatalogProductView $catalogProductView,
34 BrowserInterface $browser,
35 FixtureInterface $originalProduct,
40 $cmsIndex->getLinksBlock()->waitWelcomeMessage();
42 $cmsIndex->getStoreSwitcherBlock()->selectStoreView(
$store->getName());
43 $cmsIndex->getLinksBlock()->waitWelcomeMessage();
44 $browser->open($_ENV[
'app_frontend_url'] . $originalProduct->getUrlKey() .
'.html');
45 $catalogProductView->getBundleViewBlock()->clickCustomize();
46 \PHPUnit\Framework\Assert::assertTrue(
47 $catalogProductView->getBundleViewBlock()->getBundleBlock()->isOptionVisible(
48 $optionTitles[
$store->getStoreId()]
51 'Option with title \'%s\' is missing in \'%s\' store view.',
52 $optionTitles[
$store->getStoreId()],
66 return 'Option title is correct on product view page.';
processAssert(CatalogProductView $catalogProductView, CmsIndex $cmsIndex, BrowserInterface $browser, FixtureInterface $originalProduct, array $stores, array $optionTitles)