Loading core/profiles/demo_umami/config/install/core.entity_form_display.node.page.default.yml +2 −14 Original line number Diff line number Diff line Loading @@ -48,13 +48,6 @@ content: region: content settings: { } third_party_settings: { } promote: type: boolean_checkbox weight: 3 region: content settings: display_label: true third_party_settings: { } status: type: boolean_checkbox weight: 7 Loading @@ -62,13 +55,6 @@ content: settings: display_label: true third_party_settings: { } sticky: type: boolean_checkbox weight: 4 region: content settings: display_label: true third_party_settings: { } title: type: string_textfield weight: 0 Loading @@ -94,3 +80,5 @@ content: third_party_settings: { } hidden: layout_builder__layout: true promote: true sticky: true core/profiles/standard/config/install/core.entity_form_display.node.page.default.yml +3 −15 Original line number Diff line number Diff line Loading @@ -34,13 +34,6 @@ content: region: content settings: { } third_party_settings: { } promote: type: boolean_checkbox weight: 15 region: content settings: display_label: true third_party_settings: { } status: type: boolean_checkbox weight: 120 Loading @@ -48,13 +41,6 @@ content: settings: display_label: true third_party_settings: { } sticky: type: boolean_checkbox weight: 16 region: content settings: display_label: true third_party_settings: { } title: type: string_textfield weight: -5 Loading @@ -73,4 +59,6 @@ content: size: 60 placeholder: '' third_party_settings: { } hidden: { } hidden: promote: true sticky: true core/profiles/standard/tests/src/Traits/StandardTestTrait.php +10 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ public function testStandard(): void { // Test anonymous user can access 'Main navigation' block. $this->adminUser = $this->drupalCreateUser([ 'administer nodes', 'administer blocks', 'administer block content', 'post comments', Loading Loading @@ -93,6 +94,15 @@ public function testStandard(): void { $this->assertSession()->responseContains('Foobar'); $this->assertSession()->responseNotContains('Then she picked out two somebodies, Sally and me'); // Test promote and sticky fields are hidden by default for the page content // type and visible for the article content type. $this->drupalGet('node/add/page'); $this->assertSession()->fieldNotExists('promote[value]'); $this->assertSession()->fieldNotExists('sticky[value]'); $this->drupalGet('node/add/article'); $this->assertSession()->fieldExists('promote[value]'); $this->assertSession()->fieldExists('sticky[value]'); // Ensure block body exists. $this->drupalGet('block/add'); $this->assertSession()->fieldExists('body[0][value]'); Loading core/profiles/tests/nightwatch_a11y_testing/config/install/core.entity_form_display.node.page.default.yml +3 −15 Original line number Diff line number Diff line Loading @@ -34,13 +34,6 @@ content: region: content settings: { } third_party_settings: { } promote: type: boolean_checkbox weight: 15 region: content settings: display_label: true third_party_settings: { } status: type: boolean_checkbox weight: 120 Loading @@ -48,13 +41,6 @@ content: settings: display_label: true third_party_settings: { } sticky: type: boolean_checkbox weight: 16 region: content settings: display_label: true third_party_settings: { } title: type: string_textfield weight: -5 Loading @@ -73,4 +59,6 @@ content: size: 60 placeholder: '' third_party_settings: { } hidden: { } hidden: promote: true sticky: true core/recipes/page_content_type/config/core.entity_form_display.node.page.default.yml +3 −15 Original line number Diff line number Diff line Loading @@ -34,13 +34,6 @@ content: region: content settings: { } third_party_settings: { } promote: type: boolean_checkbox weight: 15 region: content settings: display_label: true third_party_settings: { } status: type: boolean_checkbox weight: 120 Loading @@ -48,13 +41,6 @@ content: settings: display_label: true third_party_settings: { } sticky: type: boolean_checkbox weight: 16 region: content settings: display_label: true third_party_settings: { } title: type: string_textfield weight: -5 Loading @@ -73,4 +59,6 @@ content: size: 60 placeholder: '' third_party_settings: { } hidden: { } hidden: promote: true sticky: true Loading
core/profiles/demo_umami/config/install/core.entity_form_display.node.page.default.yml +2 −14 Original line number Diff line number Diff line Loading @@ -48,13 +48,6 @@ content: region: content settings: { } third_party_settings: { } promote: type: boolean_checkbox weight: 3 region: content settings: display_label: true third_party_settings: { } status: type: boolean_checkbox weight: 7 Loading @@ -62,13 +55,6 @@ content: settings: display_label: true third_party_settings: { } sticky: type: boolean_checkbox weight: 4 region: content settings: display_label: true third_party_settings: { } title: type: string_textfield weight: 0 Loading @@ -94,3 +80,5 @@ content: third_party_settings: { } hidden: layout_builder__layout: true promote: true sticky: true
core/profiles/standard/config/install/core.entity_form_display.node.page.default.yml +3 −15 Original line number Diff line number Diff line Loading @@ -34,13 +34,6 @@ content: region: content settings: { } third_party_settings: { } promote: type: boolean_checkbox weight: 15 region: content settings: display_label: true third_party_settings: { } status: type: boolean_checkbox weight: 120 Loading @@ -48,13 +41,6 @@ content: settings: display_label: true third_party_settings: { } sticky: type: boolean_checkbox weight: 16 region: content settings: display_label: true third_party_settings: { } title: type: string_textfield weight: -5 Loading @@ -73,4 +59,6 @@ content: size: 60 placeholder: '' third_party_settings: { } hidden: { } hidden: promote: true sticky: true
core/profiles/standard/tests/src/Traits/StandardTestTrait.php +10 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ public function testStandard(): void { // Test anonymous user can access 'Main navigation' block. $this->adminUser = $this->drupalCreateUser([ 'administer nodes', 'administer blocks', 'administer block content', 'post comments', Loading Loading @@ -93,6 +94,15 @@ public function testStandard(): void { $this->assertSession()->responseContains('Foobar'); $this->assertSession()->responseNotContains('Then she picked out two somebodies, Sally and me'); // Test promote and sticky fields are hidden by default for the page content // type and visible for the article content type. $this->drupalGet('node/add/page'); $this->assertSession()->fieldNotExists('promote[value]'); $this->assertSession()->fieldNotExists('sticky[value]'); $this->drupalGet('node/add/article'); $this->assertSession()->fieldExists('promote[value]'); $this->assertSession()->fieldExists('sticky[value]'); // Ensure block body exists. $this->drupalGet('block/add'); $this->assertSession()->fieldExists('body[0][value]'); Loading
core/profiles/tests/nightwatch_a11y_testing/config/install/core.entity_form_display.node.page.default.yml +3 −15 Original line number Diff line number Diff line Loading @@ -34,13 +34,6 @@ content: region: content settings: { } third_party_settings: { } promote: type: boolean_checkbox weight: 15 region: content settings: display_label: true third_party_settings: { } status: type: boolean_checkbox weight: 120 Loading @@ -48,13 +41,6 @@ content: settings: display_label: true third_party_settings: { } sticky: type: boolean_checkbox weight: 16 region: content settings: display_label: true third_party_settings: { } title: type: string_textfield weight: -5 Loading @@ -73,4 +59,6 @@ content: size: 60 placeholder: '' third_party_settings: { } hidden: { } hidden: promote: true sticky: true
core/recipes/page_content_type/config/core.entity_form_display.node.page.default.yml +3 −15 Original line number Diff line number Diff line Loading @@ -34,13 +34,6 @@ content: region: content settings: { } third_party_settings: { } promote: type: boolean_checkbox weight: 15 region: content settings: display_label: true third_party_settings: { } status: type: boolean_checkbox weight: 120 Loading @@ -48,13 +41,6 @@ content: settings: display_label: true third_party_settings: { } sticky: type: boolean_checkbox weight: 16 region: content settings: display_label: true third_party_settings: { } title: type: string_textfield weight: -5 Loading @@ -73,4 +59,6 @@ content: size: 60 placeholder: '' third_party_settings: { } hidden: { } hidden: promote: true sticky: true