Skip to content

Commit f151f23

Browse files
author
olysenko
committed
MAGETWO-65216: Update analytics dashboard button position
1 parent d3f68d7 commit f151f23

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertAdvancedReportingPage.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AssertAdvancedReportingPage extends AbstractConstraint
1818
*
1919
* @var BrowserInterface
2020
*/
21-
protected $browser;
21+
private $browser;
2222

2323
/**
2424
* Assert Advanced Reporting Sign Up page is opened by link.
@@ -31,9 +31,12 @@ public function processAssert(BrowserInterface $browser, $advancedReportingLink)
3131
{
3232
$this->browser = $browser;
3333
$this->browser->selectWindow();
34-
\PHPUnit_Framework_Assert::assertEquals(
35-
$advancedReportingLink,
36-
$this->browser->getUrl(),
34+
\PHPUnit_Framework_Assert::assertTrue(
35+
$this->browser->waitUntil(
36+
function () use ($advancedReportingLink) {
37+
return ($this->browser->getUrl() === $advancedReportingLink) ? true : null;
38+
}
39+
),
3740
'Advanced Reporting Sign Up page was not opened by link.'
3841
);
3942
}

0 commit comments

Comments
 (0)