only in patch2: unchanged: --- a/core/modules/block/src/Tests/BlockUiTest.php +++ b/core/modules/block/src/Tests/BlockUiTest.php @@ -58,14 +58,12 @@ protected function setUp() { $this->blockValues = array( array( 'label' => 'Tools', - 'tr' => '5', 'plugin_id' => 'system_menu_block:tools', 'settings' => array('region' => 'sidebar_second', 'id' => 'tools'), 'test_weight' => '-1', ), array( 'label' => 'Powered by Drupal', - 'tr' => '16', 'plugin_id' => 'system_powered_by_block', 'settings' => array('region' => 'footer', 'id' => 'powered'), 'test_weight' => '0', @@ -105,8 +103,8 @@ function testBlockAdminUiPage() { foreach ($this->blockValues as $delta => $values) { $block = $this->blocks[$delta]; $label = $block->label(); - $element = $this->xpath('//*[@id="blocks"]/tbody/tr[' . $values['tr'] . ']/td[1]/text()'); - $this->assertTrue((string) $element[0] == $label, 'The "' . $label . '" block title is set inside the ' . $values['settings']['region'] . ' region.'); + $element = $this->xpath('//select[@id="edit-blocks-' . $values['settings']['id'] . '-region"]/option[@selected]/@value'); + $this->assertTrue((string) $element[0] == $values['settings']['region'], 'The "' . $label . '" block title is set inside the ' . $values['settings']['region'] . ' region.'); // Look for a test block region select form element. $this->assertField('blocks[' . $values['settings']['id'] . '][region]', 'The block "' . $values['label'] . '" has a region assignment field.'); // Move the test block to the header region.