$this->
drupalGet(static::FIELD_UI_PREFIX . '/display/default'
);
$this->
submitForm(['layout[enabled]' => TRUE, 'layout[allow_custom]' => TRUE
], 'Save'
);
$layout_default_path = 'admin/structure/types/manage/bundle_with_section_field/display/default/layout';
$this->
drupalGet($layout_default_path);
// Add a basic block with the body field set.
$page->
clickLink('Add block'
);
$assert_session->
assertWaitOnAjaxRequest();
// Confirm that with no block content types the link does not appear.
$assert_session->
linkNotExists('Create content block'
);
$this->
createBlockContentType('basic', 'Basic block'
);
$this->
drupalGet($layout_default_path);
// Add a basic block with the body field set.
$page->
clickLink('Add block'
);
$assert_session->
assertWaitOnAjaxRequest();
// Confirm with only 1 type the "Create content block" link goes directly t
// block add form.
$assert_session->
linkNotExists('Basic block'
);
$this->
clickLink('Create content block'
);
$assert_session->
assertWaitOnAjaxRequest();
$assert_session->
fieldExists('Title'
);