Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertTierPriceOnBundleProductPage.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Catalog\Test\Page\Product\CatalogProductView;
11 use Magento\Mtf\Client\BrowserInterface;
12 use Magento\Mtf\Fixture\FixtureInterface;
13 
18 {
19  /* tags */
20  const SEVERITY = 'low';
21  /* end tags */
22 
28  protected $tierBlock = '.prices.tier.items';
29 
35  protected $priceFormat = 0;
36 
45  public function processAssert(
46  BrowserInterface $browser,
47  CatalogProductView $catalogProductView,
48  FixtureInterface $product
49  ) {
50  //Open product view page
51  $browser->open($_ENV['app_frontend_url'] . $product->getUrlKey() . '.html');
52  $viewBlock = $catalogProductView->getBundleViewBlock();
53  $viewBlock->clickCustomize();
54 
55  //Process assertions
56  $this->assertPrice($product, $viewBlock);
57  }
58 }
processAssert(BrowserInterface $browser, CatalogProductView $catalogProductView, FixtureInterface $product)