Files
piratepoet/tests/acceptance/EditorFooterBlockCest.php
Jan Jakeš b39dac75d6 Autofix number of newlines between methods
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00

27 lines
935 B
PHP

<?php
namespace MailPoet\Test\Acceptance;
use MailPoet\Test\DataFactories\Newsletter;
class EditorFooterBlockCest {
public function addFooter(\AcceptanceTester $i) {
$i->wantTo('add Footer block to newsletter');
$footerInEditor = ('[data-automation-id="footer"]');
$footerSettingsIcon = ('[data-automation-id="settings_tool"]');
$footerSettingsAssertion = ('[data-automation-id="footer_done_button"]');
$newsletter = (new Newsletter())
->loadBodyFrom('newsletterWithTextNoFooter.json')
->create();
$i->login();
$i->amEditingNewsletter($newsletter->id);
$i->dragAndDrop('#automation_editor_block_footer', '#mce_0');
//Open settings by clicking on block
$i->moveMouseOver($footerInEditor, 3, 2);
$i->waitForText('Manage subscription');
$i->click($footerSettingsIcon);
$i->waitForElementVisible($footerSettingsAssertion);
$i->click($footerSettingsAssertion);
}
}