/**
  * Close browser.
  *
  * @return void
  */
 public function tearDown()
 {
     $this->browser->closeWindow();
 }
 /**
  * Close browser.
  *
  * @return void
  */
 public function tearDown()
 {
     $this->objectManager->create('Magento\\SalesRule\\Test\\TestStep\\DeleteAllSalesRuleStep')->run();
     $this->browser->closeWindow();
 }
Example #3
0
 /**
  * Close page through browser
  *
  * @return void
  */
 public function close()
 {
     $this->browser->closeWindow();
 }
 /**
  * Assert that newsletter preview opened in new window and template content correct
  *
  * @param BrowserInterface $browser
  * @param TemplatePreview $templatePreview
  * @param Template $newsletter
  * @return void
  */
 public function processAssert(BrowserInterface $browser, TemplatePreview $templatePreview, Template $newsletter)
 {
     $browser->selectWindow();
     $content = $templatePreview->getContent()->getPageContent();
     $browser->closeWindow();
     \PHPUnit_Framework_Assert::assertEquals($newsletter->getText(), $content, 'Template content not correct information.');
 }