Skip to content
Snippets Groups Projects
Verified Commit 46549a06 authored by Dave Long's avatar Dave Long
Browse files

Issue #3375406 by Akhil Babu, vaibhav_arora, shweta__sharma, Harish1688,...

Issue #3375406 by Akhil Babu, vaibhav_arora, shweta__sharma, Harish1688, Gauravvvv, Indrapatil, smustgrave: The 'Name' field in the Add form mode is required, even though it lacks any indication of being mandatory

(cherry picked from commit f50c6a35)
parent 3cdeded2
Branches
Tags
12 merge requests!8376Drupal views: adding more granularity to the ‘use ajax’ functionality,!8300Issue #3443586 View area displays even when parent view has no results.,!7567Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7565Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7509Change label "Block description" to "Block type",!7344Issue #3292350 by O'Briat, KlemenDEV, hswong3i, smustgrave, quietone: Update...,!6922Issue #3412959 by quietone, smustgrave, longwave: Fix 12 'un' words,!6848Issue #3417553 by longwave: Remove withConsecutive() in CacheCollectorTest,!6720Revert "Issue #3358581 by pfrenssen, _tarik_, a.dmitriiev, smustgrave:...,!6560Update ClaroPreRender.php, confirming classes provided are in array format,!6528Issue #3414261 by catch: Add authenticated user umami performance tests,!6501Issue #3263668 by omkar-pd, Wim Leers, hooroomoo: Re-enable inline form errors...
Pipeline #87178 passed with warnings
Pipeline: drupal

#87187

    Pipeline: drupal

    #87181

      ......@@ -87,6 +87,7 @@ public function form(array $form, FormStateInterface $form_state) {
      '#title' => $this->t('Name'),
      '#maxlength' => 100,
      '#default_value' => $this->entity->label(),
      '#required' => TRUE,
      ];
      $form['description'] = [
      ......
      ......@@ -64,6 +64,8 @@ public function testEntityViewModeUI() {
      // Test adding a view mode including dots in machine_name.
      $this->clickLink('Test entity');
      // Check if 'Name' field is required.
      $this->assertTrue($this->getSession()->getPage()->findField('label')->hasClass('required'));
      $edit = [
      'id' => $this->randomMachineName() . '.' . $this->randomMachineName(),
      'label' => $this->randomString(),
      ......@@ -118,6 +120,8 @@ public function testEntityFormModeUI() {
      // Test adding a view mode including dots in machine_name.
      $this->clickLink('Test entity');
      // Check if 'Name' field is required.
      $this->assertTrue($this->getSession()->getPage()->findField('label')->hasClass('required'));
      $edit = [
      'id' => $this->randomMachineName() . '.' . $this->randomMachineName(),
      'label' => $this->randomString(),
      ......
      0% Loading or .
      You are about to add 0 people to the discussion. Proceed with caution.
      Please register or to comment