10 use Magento\Catalog\Test\Page\Product\CatalogProductView;
11 use Magento\Checkout\Test\Page\CheckoutCart;
12 use Magento\Mtf\Client\BrowserInterface;
13 use Magento\Mtf\TestCase\Injectable;
51 BrowserInterface $browser,
52 CatalogProductView $catalogProductView,
60 $this->objectManager->create(
61 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
62 [
'configData' => $this->configData]
68 $checkoutCart->open();
69 $checkoutCart->getCartBlock()->clearShoppingCart();
71 $browser->open($_ENV[
'app_frontend_url'] .
$product->getUrlKey() .
'.html');
72 $catalogProductView->getViewBlock()->addToCart(
$product);
73 $catalogProductView->getMessagesBlock()->waitSuccessMessage();
83 $this->objectManager->create(
84 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
85 [
'configData' => $this->configData,
'rollback' =>
true]
test(BrowserInterface $browser, CatalogProductView $catalogProductView, CheckoutCart $checkoutCart, CatalogProductSimple $product, $configData)