Browse Source

Wait until iframes have been loaded

message-render-iframe
Pablo Zmdl 5 months ago
parent
commit
ff58dd4c44
  1. 1
      tests/Browser/Mail/PreviewTest.php
  2. 1
      tests/Browser/Mail/PrintTest.php

1
tests/Browser/Mail/PreviewTest.php

@ -50,6 +50,7 @@ class PreviewTest extends TestCase
$browser->withinFrame('#messagecontframe', function ($browser) {
$browser->waitFor('img.contactphoto');
$browser->waitUntilMissing('.loading');
// Privacy warning
$browser->assertVisible('#remote-objects-message.alert-warning')
->assertSeeIn('#remote-objects-message', 'To protect your privacy remote resources have been blocked.');

1
tests/Browser/Mail/PrintTest.php

@ -55,6 +55,7 @@ class PrintTest extends TestCase
});
// Check iframed body.
$browser->waitUntilMissing('.loading');
$browser->withinFrame('#message-part1 .framed-message-part', static function ($browser) {
$browser->assertSeeIn('div.pre', 'Plain text message body.')
->assertVisible('div.pre .sig');

Loading…
Cancel
Save