$this->
assertSame([ 'Paragraph',
'Heading 2',
'Heading 3',
'Heading 4',
'Heading 5',
'Heading 6',
],
$available_headings);
$this->
drupalGet('admin/config/content/formats/manage/ckeditor5'
);
$this->
assertTrue($page->
hasUncheckedField('editor[settings][plugins][ckeditor5_heading][enabled_headings][heading1]'
));
$page->
checkField('editor[settings][plugins][ckeditor5_heading][enabled_headings][heading1]'
);
$assert_session->
assertWaitOnAjaxRequest();
$this->
assertTrue($page->
hasCheckedField('editor[settings][plugins][ckeditor5_heading][enabled_headings][heading1]'
));
$this->
assertTrue($page->
hasCheckedField('editor[settings][plugins][ckeditor5_heading][enabled_headings][heading2]'
));
$page->
uncheckField('editor[settings][plugins][ckeditor5_heading][enabled_headings][heading2]'
);
$assert_session->
assertWaitOnAjaxRequest();
$this->
assertTrue($page->
hasUncheckedField('editor[settings][plugins][ckeditor5_heading][enabled_headings][heading2]'
));
$this->
assertTrue($page->
hasCheckedField('editor[settings][plugins][ckeditor5_heading][enabled_headings][heading4]'
));
$page->
uncheckField('editor[settings][plugins][ckeditor5_heading][enabled_headings][heading4]'
);
$assert_session->
assertWaitOnAjaxRequest();
$this->
assertTrue($page->
hasUncheckedField('editor[settings][plugins][ckeditor5_heading][enabled_headings][heading4]'
));