Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Aug 18, 2022
1 parent e711cd9 commit d90f417
Showing 1 changed file with 8 additions and 3 deletions.
Expand Up @@ -5,6 +5,7 @@
use Exception;
use Facebook\WebDriver\WebDriverBy;
use Facebook\WebDriver\WebDriverExpectedCondition;
use Facebook\WebDriver\Exception\TimeOutException;
use FailedEmail;

class FailedEmailTest extends TestBaseClassWeb
Expand Down Expand Up @@ -156,10 +157,14 @@ public function testMassiveActions(): void
$massiveActionResend = $web->findElement(WebDriverBy::cssSelector('#failedEmailActions [data-action="resend"]'));
$massiveActionResend->click();

$body = $web->findElement(WebDriverBy::tagName('body'));
var_dump($body->getText());
try {
$web->wait(20)->until(WebDriverExpectedCondition::visibilityOfElementLocated(WebDriverBy::cssSelector('#massive-actions-modal-failedemail-grid-resend-1 #preserveResend')));
} catch (TimeOutException $ex) {
$body = $web->findElement(WebDriverBy::tagName('body'));
var_dump($body->getText());
throw $ex;
}

$web->wait(20)->until(WebDriverExpectedCondition::visibilityOfElementLocated(WebDriverBy::cssSelector('#massive-actions-modal-failedemail-grid-resend-1 #preserveResend')));
$massiveActionResendPreserve = $web->findElement(WebDriverBy::cssSelector('#massive-actions-modal-failedemail-grid-resend-1 #preserveResend'));
$massiveActionResendPreserve->click();
$web->wait(5)->until(WebDriverExpectedCondition::visibilityOfElementLocated(WebDriverBy::cssSelector('#massive-actions-modal-failedemail-grid-resend-1 .btn-ok')));
Expand Down

0 comments on commit d90f417

Please sign in to comment.