diff -u b/core/modules/layout_builder/tests/src/FunctionalJavascript/FieldValuesTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/FieldValuesTest.php --- b/core/modules/layout_builder/tests/src/FunctionalJavascript/FieldValuesTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/FieldValuesTest.php @@ -83,8 +83,9 @@ // Change the Links block label in the override to confirm that these // changes aren't removed when entity field values are updated. - $links_block = $assert_session->elementExists('css', '.block-extra-field-blocknodebundle-for-testing-fieldslinks'); - $links_block_uuid = $links_block->getAttribute('data-layout-block-uuid'); + $links_block = $page->findAll('css', ".layout__region--content > .layout-builder-block"); + // The second block is the body field so that is why $links_block[1]. + $links_block_uuid = $links_block[1]->getAttribute('data-layout-block-uuid'); $this->drupalGet('layout_builder/update/block/overrides/node.1/0/content/' . $links_block_uuid); $page->checkField('settings[label_display]'); $overridden_label = 'This is a label in the override';