Removes timeouts and uses data-automation-id as element selector

This commit is contained in:
Vlad
2017-11-07 08:40:53 -05:00
committed by pavel-mailpoet
parent d399ddf6b6
commit f1918ac953
8 changed files with 32 additions and 23 deletions

View File

@ -10,10 +10,10 @@ class Select extends Base {
$field_name = 'data[' . static::getFieldName($block) . ']';
$field_validation = static::getInputValidation($block);
$automation_id = ($block['id'] == 'status') ? 'data-automation-id="form_status"' : '';
$html .= '<p class="mailpoet_paragraph">';
$html .= static::renderLabel($block);
$html .= '<select class="mailpoet_select" name="'.$field_name.'">';
$html .= '<select class="mailpoet_select" name="'.$field_name.'" ' . $automation_id . '>';
if(isset($block['params']['label_within']) && $block['params']['label_within']) {
$html .= '<option value="">'.static::getFieldLabel($block).'</option>';