// The highlight is present with ConfigureSectionForm.
$this->assertHighlightedElement('[data-layout-builder-highlight-id="section-0"]');
// Submit the form to add the section and then confirm that no element is
// highlighted anymore.
$page->pressButton("Add section"); $assert_session->assertWaitOnAjaxRequest(); $this->assertHighlightNotExists(); $this->assertNotEmpty($assert_session->waitForElementVisible('css', '[data-layout-delta="1"]')); $assert_session->elementsCount('css', '.layout-builder__add-block', 3);
// Highlight is present with ChooseBlockController::build().
$this->assertHighlightedElement('[data-layout-builder-highlight-id="block-0-first"]'); $page->clickLink('Create content block');