Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertApiInfoTitleOnPage.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 
15 class AssertApiInfoTitleOnPage extends AbstractConstraint
16 {
22  protected $titleSelector = '.title';
23 
30  public function processAssert(SwaggerUiPage $swaggerPage)
31  {
32  \PHPUnit\Framework\Assert::assertTrue(
33  $swaggerPage->isElementVisible($this->titleSelector),
34  'REST API info title on swagger page.'
35  );
36  }
37 
43  public function toString()
44  {
45  return 'REST API info title on swagger page.';
46  }
47 }
isElementVisible($selector, $strategy=Locator::SELECTOR_CSS)