Update scenario to include heading and paragraph [MAILPOET-3328]

[MAILPOET-3328](https://mailpoet.atlassian.net/browse/MAILPOET-3328)
This commit is contained in:
Veljko V
2020-11-26 16:37:58 +01:00
parent 5de2472efc
commit ee6c9c0a21

View File

@@ -35,12 +35,24 @@ class FormEditorTextInputStylesCest {
// Check element has styles
$i->assertAttributeContains('[data-automation-id="editor_first_name_input"]', 'style', 'border-width: 10px;');
$i->assertAttributeContains('[data-automation-id="editor_first_name_label"]', 'style', 'font-weight: bold;');
// Apply to all
$i->click('[data-automation-id="styles_apply_to_all"]');
// Check email block has styles too
// Add heading block and write some title
$i->addFromBlockInEditor('Heading');
$i->fillField('[data-title="Heading"]', 'Lorem Ipsum');
$i->see('Lorem Ipsum');
// Add paragraph block and write some text
$i->addFromBlockInEditor('Paragraph');
$i->fillField('[data-title="Paragraph"]', 'Lorem ipsum dolor sit amet');
$i->see('Lorem ipsum dolor sit amet');
// Check email block has styles too and save the form
$i->assertAttributeContains('[data-automation-id="editor_first_name_input"]', 'style', 'border-width: 10px;');
// Save form
$i->saveFormInEditor();
// Reload page and check data were saved
$i->reloadPage();
$i->waitForElement('[data-automation-id="form_title_input"]');