$this->
drupalLogin($this->
drupalCreateUser([ 'configure any layout',
'access contextual links',
]));
$this->
drupalGet('node/1/layout'
);
$expected_block_order =
[ '.block-extra-field-blocknodebundle-with-section-fieldlinks',
'.block-field-blocknodebundle-with-section-fieldbody',
];
$this->
markTestSkipped("Skipped temporarily for random fails."
);
$this->
assertRegionBlocksOrder(0, 'content',
$expected_block_order);
// Add a top section using the Two column layout.
$page->
clickLink('Add section'
);
$assert_session->
waitForElementVisible('css', '#drupal-off-canvas'
);
$assert_session->
assertWaitOnAjaxRequest();
$page->
clickLink('Two column'
);
$assert_session->
assertWaitOnAjaxRequest();
$this->
assertNotEmpty($assert_session->
waitForElementVisible('css', 'input[value="Add section"]'
));
$page->
pressButton('Add section'
);
$this->
assertRegionBlocksOrder(1, 'content',
$expected_block_order);