Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ClearAllCompareProductsTest.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Customer\Test\Page\CustomerAccountIndex;
11 
28 {
29  /* tags */
30  const MVP = 'yes';
31  const TEST_TYPE = 'extended_acceptance_test';
32  /* end tags */
33 
42  public function test($products, ConfigData $config, CustomerAccountIndex $customerAccountIndex)
43  {
44  // Preconditions
45  $config->persist();
47 
48  //Steps
49  $this->cmsIndex->open();
50  $this->loginCustomer();
51  $this->addProducts($products);
52  $this->cmsIndex->getLinksBlock()->openLink("My Account");
53  $customerAccountIndex->getCompareProductsBlock()->clickClearAll();
54  }
55 }
test($products, ConfigData $config, CustomerAccountIndex $customerAccountIndex)
$config
Definition: fraud_order.php:17