Verified Commit cc4e5423 authored by Dave Long's avatar Dave Long
Browse files

fix: #3559326 Random fail in ConfigTranslationCacheTest due using...

fix: #3559326 Random fail in ConfigTranslationCacheTest due using assertEscaped on XSS filtered text

By: alexpott
By: dww
(cherry picked from commit 6c71422c)
parent 69bfca9c
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -187,7 +187,7 @@ public function buildRow(EntityInterface $field_config) {
          'label' => [
            '#type' => 'html_tag',
            '#tag' => 'span',
            '#value' => $field_config->getLabel(),
            '#plain_text' => $field_config->getLabel(),
            '#attributes' => [
              'class' => ['field-label-text'],
            ],
@@ -195,7 +195,7 @@ public function buildRow(EntityInterface $field_config) {
          'machine_name' => [
            '#type' => 'html_tag',
            '#tag' => 'span',
            '#value' => ' ' . $field_config->getName(),
            '#plain_text' => ' ' . $field_config->getName(),
            '#attributes' => [
              'class' => ['field-ui-secondary-text', 'field-machine-name'],
            ],
+1 −1
Original line number Diff line number Diff line
@@ -299,7 +299,7 @@ protected function addPersistentFieldStorage(): void {
    $this->assertSession()->pageTextContains('Re-use an existing field');

    // Ensure that we test with a label that contains HTML.
    $label = $this->randomMachineName(4) . '<br>' . $this->randomMachineName(4);
    $label = $this->randomMachineName(4) . '<br/>' . $this->randomMachineName(4);
    // Add a new field for the orphaned storage.
    $this->fieldUIAddExistingField("admin/structure/types/manage/page", $this->fieldName, $label);
  }