diff --git a/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php b/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php index d296474..c4a11b3 100644 --- a/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php +++ b/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php @@ -754,9 +754,9 @@ public function testBooleanFieldConfigTranslation() { 'bundle' => $bundle, ]); - $on_label = $this->randomString(); + $on_label = 'On label (default language)'; $field->setSetting('on_label', $on_label); - $off_label = $this->randomString(); + $off_label = 'Off label (default language)'; $field->setSetting('off_label', $off_label); $field->save(); @@ -765,9 +765,12 @@ public function testBooleanFieldConfigTranslation() { $this->drupalGet("/entity_test/structure/$bundle/fields/entity_test.$bundle.$field_name/translate"); $this->clickLink('Add'); + // Checks the details label. $this->assertText(Html::escape($on_label) . ' Boolean settings'); - $this->assertEscaped($on_label); - $this->assertEscaped($off_label); + + // Checks that the correct on and off labels appear on the form. + $this->assertText($on_label); + $this->assertText($off_label); } /**