We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7ce7f2 commit 02f8c38Copy full SHA for 02f8c38
dev/tests/functional/tests/app/Magento/User/Test/TestStep/CloseErrorAlertStep.php
@@ -43,11 +43,15 @@ public function __construct(
43
public function run()
44
{
45
$modalMessage = $this->dashboard->getModalMessage();
46
- $this->browser->waitUntil(
47
- function () use ($modalMessage) {
48
- return $modalMessage->isVisible() ? true : null;
49
- }
50
- );
51
- $modalMessage->acceptAlert();
+ try {
+ $this->browser->waitUntil(
+ function () use ($modalMessage) {
+ return $modalMessage->isVisible() ? true : null;
+ }
+ );
52
+ $modalMessage->acceptAlert();
53
+ } catch (\PHPUnit_Extensions_Selenium2TestCase_WebDriverException $e) {
54
+ //There is no modal to accept.
55
56
}
57
0 commit comments