9 use Magento\Mtf\Client\BrowserInterface;
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 use Magento\Backend\Test\Page\Adminhtml\Dashboard;
42 $businessIntelligenceLink,
45 $waitMenuItemNotVisible =
false 58 $this->browser->selectWindow();
59 $isVisible = $this->browser->waitUntil(
function () use ($businessIntelligenceLink) {
60 return ($this->browser->getUrl() === $businessIntelligenceLink) ?:
null;
63 }
catch (\Throwable $e) {
65 $dashboard->getMenuBlock()->navigate($menuItem, $waitMenuItemNotVisible);
68 }
while (
$count < self::MAX_TRY_COUNT);
70 \PHPUnit\Framework\Assert::assertTrue(
72 "BI Essentials Sign Up page was not opened by link.\n 73 Actual link is '{$this->browser->getUrl()}'\n 74 Expected link is '$businessIntelligenceLink'" 85 return 'BI Essentials Sign Up page is opened by link';
processAssert(BrowserInterface $browser, $businessIntelligenceLink, Dashboard $dashboard, $menuItem, $waitMenuItemNotVisible=false)