markCurrentPage example

$assert_session->linkNotExists('Layout');

    $this->enableLayoutsForBundle('admin/structure/types/manage/bundle_with_section_field/display', TRUE);

    // The existing content is still shown until overridden.     $this->drupalGet($node_url);
    $assert_session->pageTextContains('The node body');

    // Enter the layout editing mode.     $assert_session->linkExists('Layout');
    $this->clickLink('Layout');
    $this->markCurrentPage();
    $assert_session->pageTextContains('The node body');
    $assert_session->linkExists('Add section');

    // Add a new block.     $this->openAddBlockForm('Powered by Drupal');

    $page->fillField('settings[label]', 'This is the label');
    $page->checkField('settings[label_display]');

    // Save the new block, and ensure it is displayed on the page.     $page->pressButton('Add block');
    
Home | Imprint | This part of the site doesn't use cookies.