Files
piratepoet/tests/acceptance/EditorSocialBlockCest.php
Jan Jakeš 54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00

26 lines
840 B
PHP

<?php
namespace MailPoet\Test\Acceptance;
use MailPoet\Test\DataFactories\Newsletter;
class EditorSocialBlockCest {
public function addSocialBlock(\AcceptanceTester $i) {
$i->wantTo('add social block to newsletter');
$socialBlockInEditor = ('[data-automation-id="socialBlock"]');
$socialBlockSettingsAssertion = ('[data-automation-id="social_select_another_network"]');
$newsletter = (new Newsletter())
->loadBodyFrom('newsletterWithText.json')
->create();
$i->login();
$i->amEditingNewsletter($newsletter->id);
$i->dragAndDrop('#automation_editor_block_social', '#mce_1');
//Open settings by clicking on block
$i->moveMouseOver($socialBlockInEditor, 3, 2);
$i->click($socialBlockInEditor);
$i->waitForElementVisible($socialBlockSettingsAssertion);
$i->click('Done');
}
}