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;
33 CatalogProductView $catalogProductView,
34 BrowserInterface $browser,
38 $browser->open($_ENV[
'app_frontend_url'] .
$product->getUrlKey() .
'.html');
39 \PHPUnit\Framework\Assert::assertEquals(
40 self::STOCK_AVAILABILITY,
41 $catalogProductView->getViewBlock()->stockAvailability(),
42 'Control "' . self::STOCK_AVAILABILITY .
'" is not visible.' 53 return 'In stock control is visible.';
processAssert(CatalogProductView $catalogProductView, BrowserInterface $browser, FixtureInterface $product)