Add acceptance test for form with columns

[MAILPOET-2609]
This commit is contained in:
Rostislav Wolny
2020-02-20 11:25:38 +01:00
committed by Pavel Dohnal
parent d9d1f05119
commit 564c61a82b
4 changed files with 91 additions and 1 deletions

View File

@ -16,7 +16,10 @@ class Text {
$automationId = ' ';
if ($block['id'] === 'email') {
$type = 'email';
$automationId = 'data-automation-id="form_email" ';
}
if (in_array($block['id'], ['email', 'last_name', 'first_name'], true)) {
$automationId = 'data-automation-id="form_' . $block['id'] . '" ';
}
$html = '<div class="mailpoet_paragraph">';