diff --git a/components/ILIAS/Test/tests/Scoring/Settings/ScoreSettingsTest.php b/components/ILIAS/Test/tests/Scoring/Settings/ScoreSettingsTest.php index 88132d15e0fb..c43aa12e1d76 100755 --- a/components/ILIAS/Test/tests/Scoring/Settings/ScoreSettingsTest.php +++ b/components/ILIAS/Test/tests/Scoring/Settings/ScoreSettingsTest.php @@ -291,7 +291,7 @@ public function testScoreSettingsSectionSummary(): void $i1_1_4_1 = $this->getFormWrappedHtml( 'date-time-field-input', - 'tst_reporting_date*', + 'tst_reporting_daterequired_field', '
', @@ -303,7 +303,7 @@ public function testScoreSettingsSectionSummary(): void $i1_1_4 = $this->getFormWrappedHtml( 'group-field-input', - 'tst_results_access_date*', + 'tst_results_access_daterequired_field', $i1_1_4_1, 'tst_results_access_date_desc', 'id_5', @@ -313,7 +313,7 @@ public function testScoreSettingsSectionSummary(): void $i1_1 = $this->getFormWrappedHtml( 'switchable-group-field-input', - 'tst_results_access_setting*', + 'tst_results_access_settingrequired_field', $i1_1_1 . $i1_1_2 . $i1_1_3 . $i1_1_4, null, null, @@ -441,7 +441,7 @@ public function testScoreSettingsSectionGamification(): void $fields = $this->getFormWrappedHtml( 'radio-field-input', - 'tst_highscore_mode*', + 'tst_highscore_moderequired_field', '
@@ -460,7 +460,7 @@ public function testScoreSettingsSectionGamification(): void ); $fields .= $this->getFormWrappedHtml( 'numeric-field-input', - 'tst_highscore_top_num*', + 'tst_highscore_top_numrequired_field', '', 'tst_highscore_top_num_description', 'id_3', diff --git a/components/ILIAS/UI/src/templates/default/Input/tpl.context_form.html b/components/ILIAS/UI/src/templates/default/Input/tpl.context_form.html index 116c46e1112f..490bada52cc3 100755 --- a/components/ILIAS/UI/src/templates/default/Input/tpl.context_form.html +++ b/components/ILIAS/UI/src/templates/default/Input/tpl.context_form.html @@ -1,6 +1,6 @@
disabled="disabled" aria-describedby="{ERROR_ID}" id="{BINDING_ID}" tabindex="0"> - +
{INPUT} diff --git a/components/ILIAS/UI/tests/Component/Input/Container/Form/StandardFormTest.php b/components/ILIAS/UI/tests/Component/Input/Container/Form/StandardFormTest.php index c50961ee797d..fc8bc1fa0b6e 100755 --- a/components/ILIAS/UI/tests/Component/Input/Container/Form/StandardFormTest.php +++ b/components/ILIAS/UI/tests/Component/Input/Container/Form/StandardFormTest.php @@ -366,7 +366,7 @@ public function testStandardFormRenderWithRequired(): void $field_html = $this->getFormWrappedHtml( 'text-field-input', - 'label*', + 'labelrequired_field', '', 'byline', 'id_1', diff --git a/components/ILIAS/UI/tests/Component/Input/Field/CommonFieldRendering.php b/components/ILIAS/UI/tests/Component/Input/Field/CommonFieldRendering.php index 167f1d3e02dd..7affdef80ba1 100644 --- a/components/ILIAS/UI/tests/Component/Input/Field/CommonFieldRendering.php +++ b/components/ILIAS/UI/tests/Component/Input/Field/CommonFieldRendering.php @@ -60,7 +60,7 @@ protected function testWithError(FormInput $component): void protected function testWithRequired(FormInput $component): void { - $expected = '*'; + $expected = 'required_field'; $this->assertStringContainsString($expected, $this->render($component->withRequired(true))); } diff --git a/components/ILIAS/UI/tests/Component/Input/Field/MarkdownTest.php b/components/ILIAS/UI/tests/Component/Input/Field/MarkdownTest.php index 5b243b5fd7dd..363bfa10c336 100755 --- a/components/ILIAS/UI/tests/Component/Input/Field/MarkdownTest.php +++ b/components/ILIAS/UI/tests/Component/Input/Field/MarkdownTest.php @@ -357,7 +357,7 @@ public function testRenderWithRequired(): void $expected = $this->brutallyTrimHTML( "
- +
diff --git a/components/ILIAS/UI/tests/Component/Input/Field/TreeMultiSelectTest.php b/components/ILIAS/UI/tests/Component/Input/Field/TreeMultiSelectTest.php index 061f117e5882..912ffa38f81f 100644 --- a/components/ILIAS/UI/tests/Component/Input/Field/TreeMultiSelectTest.php +++ b/components/ILIAS/UI/tests/Component/Input/Field/TreeMultiSelectTest.php @@ -223,7 +223,7 @@ public function testRenderWithRequired(): void $renderer = $this->getDefaultRenderer(); $expected_html = <<* + HTML; $actual_html = $renderer->render($component); diff --git a/components/ILIAS/UI/tests/Component/Input/Field/TreeSelectTest.php b/components/ILIAS/UI/tests/Component/Input/Field/TreeSelectTest.php index e13ce55d8499..70da6eb1e99b 100644 --- a/components/ILIAS/UI/tests/Component/Input/Field/TreeSelectTest.php +++ b/components/ILIAS/UI/tests/Component/Input/Field/TreeSelectTest.php @@ -223,7 +223,7 @@ public function testRenderWithRequired(): void $renderer = $this->getDefaultRenderer(); $expected_html = <<* + HTML; $actual_html = $renderer->render($component);