// Placeholder label should not be visible, preview content should be.
$assert_session->
elementNotExists('css', '.layout-builder-block__content-preview-placeholder-label'
);
$assert_session->
pageTextContains($content_preview_body_text);
// Disable content preview, confirm presence of placeholder labels.
$this->
assertTrue($page->
hasCheckedField('layout-builder-content-preview'
));
$page->
uncheckField('layout-builder-content-preview'
);
$this->
assertNotEmpty($assert_session->
waitForElementVisible('css', '.layout-builder-block__content-preview-placeholder-label'
));
// Confirm that block content is not on page.
$assert_session->
pageTextNotContains($content_preview_body_text);
$this->
assertContextualLinks();
// Check that content preview is still disabled on page reload.
$this->
getSession()->
reload();
$this->
assertNotEmpty($assert_session->
waitForElement('css', '.layout-builder-block__content-preview-placeholder-label'
));
$assert_session->
pageTextNotContains($content_preview_body_text);
$this->
assertContextualLinks();
// Confirm repositioning blocks works with content preview disabled.
$this->
assertOrderInPage([$links_field_placeholder_label,
$body_field_placeholder_label]);
$region_content = '.layout__region--content';