Skip to content

Commit

Permalink
Increase js wait time in behat
Browse files Browse the repository at this point in the history
  • Loading branch information
marekrzytki committed May 20, 2024
1 parent cccbdfc commit 7e3aaa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Behat/Page/Admin/EmailTemplate/CreatePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function preview(string $locale): void
*/
public function checkHasPreviewModal(string $subject, string $content): void
{
$this->getDriver()->wait(300, 'document.querySelector(".mail-preview").offsetParent !== null');
$this->getDriver()->wait(1000, 'document.querySelector(".mail-preview").offsetParent !== null');
Assert::true($this->previewModal->isModalVisible());
/** @phpstan-ignore-next-line */
Assert::contains($this->previewModal->getSubject(), $subject);
Expand Down

0 comments on commit 7e3aaa9

Please sign in to comment.