Commit 0ea9fe97 authored by catch's avatar catch

Issue #2938842 by digitaldonkey, martin107: #edit-submit is brittle use the BEM convention

parent 7c17fec4
......@@ -108,6 +108,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$form['actions'] = ['#type' => 'actions'];
$form['actions']['submit'] = [
'#type' => 'submit',
'#id' => 'search-form--submit',
'#value' => $this->t('Search'),
// Prevent op from showing up in the query string.
'#name' => '',
......
......@@ -183,7 +183,7 @@ public function getBlockTests() {
'theme' => $theme,
'block_plugin' => 'search_form_block',
'new_page_text' => NULL,
'element_selector' => '#edit-submit',
'element_selector' => '#search-form--submit',
'label_selector' => 'h2',
'button_text' => 'Save Search form',
'toolbar_item' => NULL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment