Files
piratepoet/tests/acceptance/BeamerAcceptanceCest.php
2019-02-12 11:36:23 -05:00

22 lines
617 B
PHP

<?php
namespace MailPoet\Test\Acceptance;
class BeamerAcceptanceCest {
function openAndCloseBeamer(\AcceptanceTester $I) {
$I->wantTo('Open and close Beamer sidebar');
$I->login();
$I->amOnMailPoetPage('Emails');
$I->click('.mailpoet_feature_announcement_icon');
$I->waitForElement('#beamerNews');
$I->switchToIframe('beamerNews');
$I->waitForElement('.headerClose');
$I->click('.headerClose');
$I->switchToIframe();
//necessary to avoid race condition with animation
$I->wait(2);
$I->dontSeeElement('#beamerNews');
$I->dontSeeElement('#beamerSelector');
}
}